diff options
Diffstat (limited to 'elf/dl-runtime.c')
-rw-r--r-- | elf/dl-runtime.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/dl-runtime.c b/elf/dl-runtime.c index 08c605cd0f..502c35d5d2 100644 --- a/elf/dl-runtime.c +++ b/elf/dl-runtime.c @@ -153,7 +153,11 @@ fixup ( *_dl_global_scope_end = NULL; /* Return the address that was written by the relocation. */ +#ifdef ELF_FIXUP_RETURNS_ADDRESS + return (ElfW(Addr))(l->l_addr + reloc->r_offset); +#else return *(ElfW(Addr) *) (l->l_addr + reloc->r_offset); +#endif } |