This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: H8 support for --gc-sections ?
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Grant Edwards <grante at visi dot com>
- Cc: binutils at sources dot redhat dot com
- Date: 30 Dec 2003 11:47:16 -0500
- Subject: Re: H8 support for --gc-sections ?
- References: <20031230161437.GA16339@grante.dsl.visi.com>
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.
> Better yet would be to add support for garbage collection for
> the H8. Is there some fundamental technical reason why it's
> not supported, or is it a matter than nobody has cared enough
> to just do it?
Nobody has cared enough to do it.
It's shouldn't be too hard to add, assuming that you are using ELF.
Follow the examples provided by other backends.
Ian