summaryrefslogtreecommitdiff
path: root/src/internal/dynlink.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-09-22 19:12:48 +0000
committerRich Felker <dalias@aerifal.cx>2015-09-22 19:12:48 +0000
commiteaf7ab6e24914bae8092edf05919e43f10092533 (patch)
treec8edb3a56ddc9dde0a6d1ff6e81e77f5e64893ce /src/internal/dynlink.h
parent2462370b4fad6f7a05abc65407369d4f621bf85e (diff)
downloadmusl-eaf7ab6e24914bae8092edf05919e43f10092533.tar.gz
musl-eaf7ab6e24914bae8092edf05919e43f10092533.tar.bz2
musl-eaf7ab6e24914bae8092edf05919e43f10092533.tar.xz
musl-eaf7ab6e24914bae8092edf05919e43f10092533.zip
add real fdpic loading of shared libraries
previously, the normal ELF library loading code was used even for fdpic, so only the kernel-loaded dynamic linker and main app could benefit from separate placement of segments and shared text.
Diffstat (limited to 'src/internal/dynlink.h')
-rw-r--r--src/internal/dynlink.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal/dynlink.h b/src/internal/dynlink.h
index b9333926..86f379e6 100644
--- a/src/internal/dynlink.h
+++ b/src/internal/dynlink.h
@@ -56,6 +56,10 @@ struct fdpic_dummy_loadmap {
#include "reloc.h"
+#ifndef FDPIC_CONSTDISP_FLAG
+#define FDPIC_CONSTDISP_FLAG 0
+#endif
+
#ifndef DL_FDPIC
#define DL_FDPIC 0
#endif