mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
Remove R_X86_64_SIZE
This commit is contained in:
parent
634c5d8fb6
commit
adc4a3ee6a
@ -4,6 +4,5 @@
|
||||
* sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
|
||||
R_386_SIZE32.
|
||||
(elf_machine_rela): Likewise.
|
||||
* sysdeps/x86_64/dl-machine.h (R_X86_64_SIZE): New macro.
|
||||
(elf_machine_rela): Handle R_X86_64_SIZE64, R_X86_64_SIZE
|
||||
and R_X86_64_SIZE32.
|
||||
* sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
|
||||
R_X86_64_SIZE64 and R_X86_64_SIZE32.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user