summaryrefslogtreecommitdiff
path: root/arch/sh/reloc.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 /arch/sh/reloc.h
parent2462370b4fad6f7a05abc65407369d4f621bf85e (diff)
downloadmusl-eaf7ab6e24914bae8092edf05919e43f10092533.tar.gz
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 'arch/sh/reloc.h')
-rw-r--r--arch/sh/reloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/reloc.h b/arch/sh/reloc.h
index c571fe4a..d4fe348c 100644
--- a/arch/sh/reloc.h
+++ b/arch/sh/reloc.h
@@ -37,6 +37,7 @@
#define REL_FUNCDESC_VAL R_SH_FUNCDESC_VALUE
#undef REL_RELATIVE
#define DL_FDPIC 1
+#define FDPIC_CONSTDISP_FLAG 0x100
#define CRTJMP(pc,sp) do { \
register size_t r8 __asm__("r8") = ((size_t *)(sp))[-2]; \
__asm__ __volatile__( "jmp @%0 ; mov %1,r15" \