about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1998-09-22 01:42:11 +0000
committerAndreas Schwab <schwab@suse.de>1998-09-22 01:42:11 +0000
commitf74e8ed1dad88f1a3fc0bf9cfb4fc7f68a73eb50 (patch)
treefa487509ad461d10325c2114c3476dff1cc4bee0 /sysdeps
parente7c5513dcd240d468812b11fda8eaba404ea082c (diff)
downloadglibc-f74e8ed1dad88f1a3fc0bf9cfb4fc7f68a73eb50.tar.gz
glibc-f74e8ed1dad88f1a3fc0bf9cfb4fc7f68a73eb50.tar.xz
glibc-f74e8ed1dad88f1a3fc0bf9cfb4fc7f68a73eb50.zip
* 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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/m68k/dl-machine.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/sysdeps/m68k/dl-machine.h b/sysdeps/m68k/dl-machine.h
index a4affcc0f0..88fcd1f0bc 100644
--- a/sysdeps/m68k/dl-machine.h
+++ b/sysdeps/m68k/dl-machine.h
@@ -324,15 +324,8 @@ static inline void
 elf_machine_lazy_rel (Elf32_Addr l_addr, const Elf32_Rela *reloc)
 {
   Elf32_Addr *const reloc_addr = (void *) (l_addr + reloc->r_offset);
-  switch (ELF32_R_TYPE (reloc->r_info))
-    {
-    case R_68K_JMP_SLOT:
-      *reloc_addr += l_addr;
-      break;
-    default:
-      assert (! "unexpected PLT reloc type");
-      break;
-    }
+  assert (ELF32_R_TYPE (reloc->r_info) == R_68K_JMP_SLOT);
+  *reloc_addr += l_addr;
 }
 
 #endif /* RESOLVE */