Fix ARM fail of gap test
authorAlan Modra <amodra@gmail.com>
Thu, 15 Jan 2015 09:12:59 +0000 (19:42 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 15 Jan 2015 09:28:31 +0000 (19:58 +1030)
commit8539e4e89eb4c54bb6668582cd709765a3803588
tree72e0a4e1e768ea02f057f60f7be427bbe0984464
parentbafffb51c4da50881dc5d72ec9bf9b78377ac692
Fix ARM fail of gap test

ld-elf/gap test was failing due to the ARM backend attempting to output
arch symbols when ld -s (strip all symbols) is in force.  This patch
stops that happening and tidies the code a little.

PR 17842
* elflink.c (elf_link_output_sym): Assert elf_onesymtab set.
(bfd_elf_final_link): Always create a symbol table when emit_relocs.
Don't assign symtab file position unless symbols will be output.
Merge blocks with condition in common.  Don't call
elf_backend_output_arch_local_syms or elf_backend_output_arch_syms
unless other symbols are output.  Move assignment of symtab_shndx
file position.  Localize variable.
bfd/ChangeLog
bfd/elflink.c
This page took 0.025734 seconds and 4 git commands to generate.