ELF/BFD: Limit `_bfd_elf_link_renumber_dynsyms' call in section GC
authorMaciej W. Rozycki <macro@imgtec.com>
Mon, 24 Apr 2017 19:13:28 +0000 (20:13 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Wed, 26 Apr 2017 12:15:17 +0000 (13:15 +0100)
commitc46cec3a8cfe02fbe0f6c67ba53abc5369c5c659
tree7a29d53022df072ccc3376f16f57dfcf9be9b9d5
parentbbdd9a6894d7875407da59d490faf5588163d21c
ELF/BFD: Limit `_bfd_elf_link_renumber_dynsyms' call in section GC

Consistently call `_bfd_elf_link_renumber_dynsyms' only if linking a
dynamic binary, complementing code in `bfd_elf_size_dynsym_hash_dynstr'
and commit ccabcbe51e85 ("New attempt at fixing MIPS --gc-sections et
al."), <https://sourceware.org/ml/binutils/2005-08/msg00258.html>.

bfd/
* elflink.c (bfd_elf_size_dynamic_sections): Only call
`_bfd_elf_link_renumber_dynsyms' after section GC if dynamic
sections have been created.
bfd/ChangeLog
bfd/elflink.c