This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is linkonce underused?
- From: Matt Austern <austern at apple dot com>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 17 Dec 2002 16:13:55 -0800
- Subject: Re: Is linkonce underused?
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.
--Matt