[PATCH] Fix --gc-sections for MIPS.
Alan Modra
amodra@bigpond.net.au
Thu Aug 4 01:00:00 GMT 2005
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
More information about the Binutils
mailing list