From 7a382c1c50fca0d4bc4c2e618ff6ac222c4e2137 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 7 Sep 2017 17:19:10 -0700 Subject: x86; Don't add elf64-x86-64.lo nor elf64.lo together with elfxx-x86.lo Don't set r_info and r_sym fields in _bfd_x86_elf_link_hash_table_create. Instead, set them in _bfd_x86_elf_link_setup_gnu_properties. We can avoid adding elf64-x86-64.lo and elf64.lo together with elfxx-x86.lo to bfd_backends. * configure.ac (bfd_backends): Don't add elf64-x86-64.lo nor elf64.lo together with elfxx-x86.lo for 64-bit BFD. * configure: Regenerated. * elf32-i386.c (elf_i386_link_setup_gnu_properties): Set r_info and r_sym fields of plt_layout. * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Likewise. * elfxx-x86.c (elf_x86_64_is_reloc_section): Remove BFD64 check. (_bfd_x86_elf_link_hash_table_create): Likewise. Don't set r_info nor r_sym fields. (_bfd_x86_elf_link_setup_gnu_properties): Set r_info and r_sym fields of htab. * elfxx-x86.h (elf_x86_plt_layout_table): Add r_info and r_sym. --- bfd/configure.ac | 7 ------- 1 file changed, 7 deletions(-) (limited to 'bfd/configure.ac') diff --git a/bfd/configure.ac b/bfd/configure.ac index 1930a41..0e4c669 100644 --- a/bfd/configure.ac +++ b/bfd/configure.ac @@ -825,13 +825,6 @@ case ${host64}-${target64}-${want64} in ;; esac -# elfxx-x86.lo needs elf64-x86-64.lo and elf64.lo with 64-bit BFD. -case "${bfd_backends}-${wordsize}" in - *elfxx-x86.lo*-64*) - bfd_backends="${bfd_backends} elf64-x86-64.lo elf64.lo" - ;; -esac - tdefaults="" test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" -- cgit v1.1