This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Fix --gc-sections for MIPS.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: David Daney <ddaney at avtrex dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 4 Aug 2005 10:30:25 +0930
- Subject: Re: [PATCH] Fix --gc-sections for MIPS.
- References: <42EC6514.5010001@avtrex.com> <20050731060612.GA7319@bubble.grove.modra.org> <42F15B70.4020902@avtrex.com>
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