about summary refs log tree commit diff
path: root/sysdeps/x86_64/dl-machine.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-01-16 07:34:59 -0800
committerH.J. Lu <hjl.tools@gmail.com>2013-01-16 07:34:59 -0800
commitadc4a3ee6aa83aace8c2ea8c69113290b9af372c (patch)
tree6cd54562a0313fd53a5327bfcd20b15302c6d359 /sysdeps/x86_64/dl-machine.h
parent634c5d8fb6419b1aa2ff95e704fa3f57f5bf1ccd (diff)
downloadglibc-hjl/size/master.tar.gz
glibc-hjl/size/master.tar.xz
glibc-hjl/size/master.zip
Remove R_X86_64_SIZE hjl/size/master
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