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: PR ld/12851: --gc-sections doesn't work on note sections


On Wed, Jun 08, 2011 at 01:10:14PM -0700, H.J. Lu wrote:
> SHT_NOTE sections are special.  We check it in elf_gc_sweep.  But
> we missed it in bfd_elf_gc_sections.

I think your patch is going in the wrong directions.  If we missed
anything in bfd_elf_gc_sections, it's that we keep note sections in
files for which all other sections are discarded.  

-- 
Alan Modra
Australia Development Lab, IBM


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