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 ?


> > 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.

I'll look at doing that.

> > 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 shouldn't be too hard to add, assuming that you are using ELF.

Yes, I'm using ELF.

> Follow the examples provided by other backends.

I think I'm going to take a stab at it.

I presume the maintainers prefer patches against the current
CVS tree rather than the last release?

-- 
Grant Edwards
grante@visi.com


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