* elflink.h (struct elf_final_link_info): Add shndxbuf_size.
commite1de4ad6183f7c6ef91a5bd77f8e24b1dfdc7a26
authorAlan Modra <amodra@bigpond.net.au>
Mon, 4 Nov 2002 13:20:56 +0000 (4 13:20 +0000)
committerAlan Modra <amodra@bigpond.net.au>
Mon, 4 Nov 2002 13:20:56 +0000 (4 13:20 +0000)
tree19406cd9b2b90e63d6cef27a243a20940cc22d7d
parentd1a151362d96c1de89e817c4003673dc2ae24390
* elflink.h (struct elf_final_link_info): Add shndxbuf_size.
(elf_bfd_final_link): Don't bother zeroing symtab_hdr fields.
Set up a larger symshndxbuf, and write it out.  Free it on
exit rather than freeing symbuf twice.  Correct section index
on output section symbol loop.
(elf_link_output_sym): Accumulate symbol extension section
indices, reallocating symshndxbuf rather than writing it out.
(elf_link_flush_output_syms): Don't flush symshndxbuf.
* elf.c (assign_section_numbers): Init i_shdrp to all zero.
Use bfd_zalloc to clear i_shdrp[0] too.
bfd/ChangeLog
bfd/elf.c
bfd/elflink.h