void-packages/srcpkgs/uftrace/patches/musl-rtld_default.patch
2018-02-08 15:12:28 +01:00

13 lines
291 B
Diff

--- libmcount/plthook.c
+++ libmcount/plthook.c
@@ -22,6 +22,10 @@
# define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
#endif
+#if !defined(RTLD_DEFAULT)
+#define RTLD_DEFAULT ((void *) 0)
+#endif
+
extern struct symtabs symtabs;
unsigned long plthook_resolver_addr;