void-packages/srcpkgs/uftrace/patches/musl-rtld_default.patch

14 lines
387 B
Diff

--- libmcount/plthook.c 2017-12-05 06:11:38.000000000 +0100
+++ libmcount/plthook.c 2017-12-06 21:17:22.716483918 +0100
@@ -32,6 +32,10 @@
#define PAGE_SIZE 4096
#define PAGE_ADDR(addr) ((void *)((addr) & ~(PAGE_SIZE - 1)))
+#if !defined(RTLD_DEFAULT)
+#define RTLD_DEFAULT ((void *) 0)
+#endif
+
static void segv_handler(int sig, siginfo_t *si, void *ctx)
{
if (segv_handled)