diff options
Diffstat (limited to 'sysdeps/i386/dl-machine.h')
-rw-r--r-- | sysdeps/i386/dl-machine.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h index 041643ef5a..0ac67c05d9 100644 --- a/sysdeps/i386/dl-machine.h +++ b/sysdeps/i386/dl-machine.h @@ -185,15 +185,11 @@ _dl_runtime_profile: .previous "); #endif -/* The PLT uses Elf32_Rel relocs. */ -#define elf_machine_relplt elf_machine_rel /* Mask identifying addresses reserved for the user program, where the dynamic linker should not map anything. */ #define ELF_MACHINE_USER_ADDRESS_MASK 0xf8000000UL - - /* Initial entry point code for the dynamic linker. The C function `_dl_start' is the real entry point; its return value is the user program's entry point. */ @@ -265,7 +261,7 @@ _dl_start_user:\n\ #define elf_machine_lookup_noplt_p(type) ((type) == R_386_JMP_SLOT) /* A reloc type used for ld.so cmdline arg lookups to reject PLT entries. */ -#define ELF_MACHINE_RELOC_NOPLT R_386_JMP_SLOT +#define ELF_MACHINE_JMP_SLOT R_386_JMP_SLOT /* The i386 never uses Elf32_Rela relocations. */ #define ELF_MACHINE_NO_RELA 1 @@ -287,6 +283,13 @@ dl_platform_init (void) _dl_platform = NULL; } +static inline void +elf_machine_fixup_plt (struct link_map *map, const Elf32_Rel *reloc, + Elf32_Addr *reloc_addr, Elf32_Addr value) +{ + *reloc_addr = value; +} + #endif /* !dl_machine_h */ #ifdef RESOLVE |