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] |
On Tue, Dec 30, 2003 at 11:47:16AM -0500, Ian Lance Taylor wrote: > Grant Edwards <grante@visi.com> writes: > > > I know the docs say the option is simply ignored if it's not > > supported, but a warning from the linker sure would have saved > > me a lot of hours trying to figure out what I was doing wrong. > > Probably a good idea. The place to patch is elf_gc_sections() in > bfd/elflink.h. Here's my first pass at adding warnings when gc-sections is ignored. I may have gotten a bit carried away. Would people prefer a single more generic warning message? -- Grant Edwards grante@visi.com
Attachment:
gc-sections-warning.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |