This is the mail archive of the binutils@sourceware.org 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: [PATCH] Fix --gc-sections for MIPS.


On Wed, Aug 03, 2005 at 05:04:00PM -0700, David Daney wrote:
> There is too much logic in _bfd_elf_link_renumber_dynsyms that would 
> have to be kept in sync with elf_gc_sweep_symbol in order to calculate a 
> consistent dynsymcount there.

Really?  I think you just need to make elf_gc_sweep_symbol agree with
elf_link_renumber_local_hash_table_dynsyms.

> However I have not been able to generate objects that have 
> .gcc_except_table.* sections.  They all seem to have a single 
> .gcc_except_table section that cannot be GCed.

This is support for an as yet uncommitted gcc patch by Eric Botcazou.

> 	* elflink.c (elf_gc_sweep):  Add parameter output_bfd and call
> 	_bfd_elf_link_renumber_dynsyms to count dynsyms.
> 	(bfd_elf_gc_sections):  Pass new arameter output_bfd to elf_gc_sweep.

I doubt that we need this.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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