mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 21:40:12 +00:00
* sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
optimized.
This commit is contained in:
parent
344b4b4e23
commit
b3e2d5611f
@ -324,15 +324,8 @@ static inline void
|
|||||||
elf_machine_lazy_rel (Elf32_Addr l_addr, const Elf32_Rela *reloc)
|
elf_machine_lazy_rel (Elf32_Addr l_addr, const Elf32_Rela *reloc)
|
||||||
{
|
{
|
||||||
Elf32_Addr *const reloc_addr = (void *) (l_addr + reloc->r_offset);
|
Elf32_Addr *const reloc_addr = (void *) (l_addr + reloc->r_offset);
|
||||||
switch (ELF32_R_TYPE (reloc->r_info))
|
assert (ELF32_R_TYPE (reloc->r_info) == R_68K_JMP_SLOT);
|
||||||
{
|
|
||||||
case R_68K_JMP_SLOT:
|
|
||||||
*reloc_addr += l_addr;
|
*reloc_addr += l_addr;
|
||||||
break;
|
|
||||||
default:
|
|
||||||
assert (! "unexpected PLT reloc type");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* RESOLVE */
|
#endif /* RESOLVE */
|
||||||
|
Loading…
Reference in New Issue
Block a user