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]

Re: H8 support for --gc-sections ?


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


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