mirror of git://sourceware.org/git/glibc.git
(elf_machine_relplt): Killed.
(ELF_MACHINE_JMP_SLOT): Renamed. (elf_machine_fixup_plt): New function.
This commit is contained in:
parent
a8e5f5a44c
commit
ff91cf3056
|
@ -135,8 +135,6 @@ asm (TRAMPOLINE_TEMPLATE (_dl_runtime_resolve, fixup) \
|
||||||
".set _dl_runtime_profile, _dl_runtime_resolve");
|
".set _dl_runtime_profile, _dl_runtime_resolve");
|
||||||
#endif
|
#endif
|
||||||
#define ELF_MACHINE_RUNTIME_FIXUP_ARGS long int save_a0, long int save_a1
|
#define ELF_MACHINE_RUNTIME_FIXUP_ARGS long int save_a0, long int save_a1
|
||||||
/* The PLT uses Elf32_Rela relocs. */
|
|
||||||
#define elf_machine_relplt elf_machine_rela
|
|
||||||
|
|
||||||
|
|
||||||
/* Mask identifying addresses reserved for the user program,
|
/* Mask identifying addresses reserved for the user program,
|
||||||
|
@ -216,11 +214,18 @@ _dl_start_user:
|
||||||
#define elf_machine_lookup_noplt_p(type) ((type) == R_68K_JMP_SLOT)
|
#define elf_machine_lookup_noplt_p(type) ((type) == R_68K_JMP_SLOT)
|
||||||
|
|
||||||
/* A reloc type used for ld.so cmdline arg lookups to reject PLT entries. */
|
/* A reloc type used for ld.so cmdline arg lookups to reject PLT entries. */
|
||||||
#define ELF_MACHINE_RELOC_NOPLT R_68K_JMP_SLOT
|
#define ELF_MACHINE_JMP_SLOT R_68K_JMP_SLOT
|
||||||
|
|
||||||
/* The m68k never uses Elf32_Rel relocations. */
|
/* The m68k never uses Elf32_Rel relocations. */
|
||||||
#define ELF_MACHINE_NO_REL 1
|
#define ELF_MACHINE_NO_REL 1
|
||||||
|
|
||||||
|
static inline void
|
||||||
|
elf_machine_fixup_plt (struct link_map *map, const Elf32_Rela *reloc,
|
||||||
|
Elf32_Addr *reloc_addr, Elf32_Addr value)
|
||||||
|
{
|
||||||
|
*reloc_addr = value + reloc->r_addend;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* !dl_machine_h */
|
#endif /* !dl_machine_h */
|
||||||
|
|
||||||
#ifdef RESOLVE
|
#ifdef RESOLVE
|
||||||
|
@ -267,7 +272,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
|
||||||
break;
|
break;
|
||||||
case R_68K_GLOB_DAT:
|
case R_68K_GLOB_DAT:
|
||||||
case R_68K_JMP_SLOT:
|
case R_68K_JMP_SLOT:
|
||||||
*reloc_addr = value;
|
*reloc_addr = value + reloc->r_addend;
|
||||||
break;
|
break;
|
||||||
case R_68K_8:
|
case R_68K_8:
|
||||||
*(char *) reloc_addr = value + reloc->r_addend;
|
*(char *) reloc_addr = value + reloc->r_addend;
|
||||||
|
|
Loading…
Reference in New Issue