summaryrefslogtreecommitdiff
path: root/sysdeps/x86_64/dl-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/x86_64/dl-machine.h')
-rw-r--r--sysdeps/x86_64/dl-machine.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/sysdeps/x86_64/dl-machine.h b/sysdeps/x86_64/dl-machine.h
index e9a7cf4abf..4768c69544 100644
--- a/sysdeps/x86_64/dl-machine.h
+++ b/sysdeps/x86_64/dl-machine.h
@@ -190,13 +190,6 @@ _dl_start_user:\n\
/* The x86-64 never uses Elf64_Rel/Elf32_Rel relocations. */
#define ELF_MACHINE_NO_REL 1
-/* Size relocation. */
-#ifdef __ILP32__
-# define R_X86_64_SIZE R_X86_64_SIZE32
-#else
-# define R_X86_64_SIZE R_X86_64_SIZE64
-#endif
-
/* We define an initialization function. This is called very early in
_dl_sysdep_start. */
#define DL_PLATFORM_INIT dl_platform_init ()
@@ -300,9 +293,11 @@ elf_machine_rela (struct link_map *map, const ElfW(Rela) *reloc,
*(Elf64_Addr *) (uintptr_t) reloc_addr
= (Elf64_Addr) sym->st_size + reloc->r_addend;
break;
-# endif
- case R_X86_64_SIZE:
+ case R_X86_64_SIZE32:
+# else
+ case R_X86_64_SIZE64:
+# endif
/* Set to symbol size plus addend. */
value = sym->st_size;
# endif