x86: Add _bfd_x86_elf_adjust_dynamic_symbol
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 1 Sep 2017 20:03:40 +0000 (13:03 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 1 Sep 2017 20:03:40 +0000 (13:03 -0700)
commiteeb2f20a764bee3a6a1edb9872467d044aaad848
tree0982534484e03aa94749c41cc21d437dc4a1f713
parent18da07cd128d8d33bb6d01b2c59f12bd7f77324a
x86: Add _bfd_x86_elf_adjust_dynamic_symbol

Share _bfd_x86_elf_adjust_dynamic_symbol in elf32-i386.c and
elf64-x86-64.c.

* elf32-i386.c (elf_i386_adjust_dynamic_symbol): Removed.
(elf_backend_adjust_dynamic_symbol): Likewise.
* elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
(elf_backend_adjust_dynamic_symbol): Likewise.
* elfxx-x86.c (_bfd_x86_elf_adjust_dynamic_symbol): New function.
(_bfd_x86_elf_link_setup_gnu_properties): Copy is_vxworks.
* elfxx-x86.h (elf_x86_link_hash_table): Add is_vxworks.
(_bfd_x86_elf_adjust_dynamic_symbol): New.
(elf_backend_adjust_dynamic_symbol): Likewise.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
bfd/elfxx-x86.c
bfd/elfxx-x86.h