diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-14 11:29:58 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-14 11:31:25 -0700 |
commit | 9577f60b5a19ce93536f49cba3af4be39e39c327 (patch) | |
tree | 598022b2085c1246f9a9b38f6969e39081de694c /bfd/elfxx-x86.h | |
parent | 5d84490bf6ac806c15781a833f0e1e7a191f334f (diff) | |
download | gdb-9577f60b5a19ce93536f49cba3af4be39e39c327.zip gdb-9577f60b5a19ce93536f49cba3af4be39e39c327.tar.gz gdb-9577f60b5a19ce93536f49cba3af4be39e39c327.tar.bz2 |
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.
Diffstat (limited to 'bfd/elfxx-x86.h')
-rw-r--r-- | bfd/elfxx-x86.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/elfxx-x86.h b/bfd/elfxx-x86.h index 542439c..a6a8455 100644 --- a/bfd/elfxx-x86.h +++ b/bfd/elfxx-x86.h @@ -601,6 +601,9 @@ extern bfd_boolean _bfd_x86_elf_link_check_relocs extern bfd_boolean _bfd_x86_elf_size_dynamic_sections (bfd *, struct bfd_link_info *); +extern struct elf_x86_link_hash_table *_bfd_x86_elf_finish_dynamic_sections + (bfd *, struct bfd_link_info *); + extern bfd_boolean _bfd_x86_elf_always_size_sections (bfd *, struct bfd_link_info *); |