* sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly

optimized.
1998-09-21  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
	optimized.
This commit is contained in:
Andreas Schwab 1998-09-22 01:42:11 +00:00
parent e7c5513dcd
commit f74e8ed1da
2 changed files with 7 additions and 9 deletions

View File

@ -1,3 +1,8 @@
1998-09-21 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* sysdeps/m68k/dl-machine.h (elf_machine_lazy_rel): Slightly
optimized.
1998-09-21 10:00 Ulrich Drepper <drepper@cygnus.com> 1998-09-21 10:00 Ulrich Drepper <drepper@cygnus.com>
* string/bits/string2.h: Add mempcpy optimization. * string/bits/string2.h: Add mempcpy optimization.

View File

@ -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 */