This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug in >64k-section ELF handling when linking (with -r)


On Mon, Nov 04, 2002 at 11:51:30PM +1030, Alan Modra wrote:
> 	* 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.
> 
> Committed mainline.  I'm not too fussed whether this makes it to the
> 2.13.1 release or not.

Neither am I; at this date, I'll say not.  Not very many people are
exercising the 64k sections code right now.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]