x86: Add _bfd_x86_elf_finish_dynamic_sections
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Oct 2017 18:29:58 +0000 (11:29 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Oct 2017 18:31:25 +0000 (11:31 -0700)
commit9577f60b5a19ce93536f49cba3af4be39e39c327
tree598022b2085c1246f9a9b38f6969e39081de694c
parent5d84490bf6ac806c15781a833f0e1e7a191f334f
x86: Add _bfd_x86_elf_finish_dynamic_sections

Extract the common parts of elf_i386_finish_dynamic_sections and
elf_x86_64_finish_dynamic_sections into a separate function in
elfxx-x86.c.

* elf32-i386.c (elf_i386_finish_dynamic_sections): Call
_bfd_x86_elf_finish_dynamic_sections.
* elf64-x86-64.c (elf_x86_64_finish_dynamic_sections): Likewise.
* elfxx-x86.c (_bfd_x86_elf_finish_dynamic_sections): New
function.
* elfxx-x86.h (_bfd_x86_elf_finish_dynamic_sections): New
prototype.
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
bfd/elfxx-x86.c
bfd/elfxx-x86.h