Is linkonce underused?
H. J. Lu
hjl@lucon.org
Tue Dec 17 17:12:00 GMT 2002
On Tue, Dec 17, 2002 at 04:13:55PM -0800, Matt Austern wrote:
> On Tuesday, December 17, 2002, at 04:07 PM, H. J. Lu wrote:
>
> > On Tue, Dec 17, 2002 at 02:36:08PM -0800, Matt Austern wrote:
> >>>
> >>> GRP_COMDAT can be used for that. It is available in ELF. I'd like to
> >>> see gcc support it.
> >>
> >> Has anyone done any preliminary design work on this? Apple
> >> is doing some work that's relevant to it, and we'd hate to
> >> duplicate anyone else's effort.
> >
> > I believe GRP_COMDAT is the way to go, at least for ELF targets. The
> > binutils support was put in recently. I don't know if it has been
> > tested at all. But I have an impression that Apple doesn't use ELF.
> > Is that true?
>
> Yes. We use a format called MACH-O. But if there's already
> work going on that relies on ELF features, we can deal with
> that one way or another---by adding elvish features to
> MACH-O, if necessary.
I am interested in the GRP_COMDAT support. I don't know how much time
I have for that. But at least, I can add testcases to binutils and
make sure the binutils is ok.
H.J.
More information about the Gcc
mailing list