OSDN Git Service

* elflink.h (struct elf_final_link_info): Add shndxbuf_size.
authoramodra <amodra>
Mon, 4 Nov 2002 13:20:55 +0000 (13:20 +0000)
committeramodra <amodra>
Mon, 4 Nov 2002 13:20:55 +0000 (13:20 +0000)
commite8dd57d99dd12eb99362a5ab49209f31a4ce54d4
treeeb624494701bbad87c7b74b8468b65167d3b0df8
parentf9898fab923e35cf3ac11a17a11c261d4dd5e816
* 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