From eaf7ab6e24914bae8092edf05919e43f10092533 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 22 Sep 2015 19:12:48 +0000 Subject: 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. --- arch/sh/reloc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'arch/sh') 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" \ -- cgit v1.2.1