This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ELF common symbols
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com
- Date: 16 Dec 2003 23:06:27 -0500
- Subject: Re: ELF common symbols
- References: <20031214031830.GO8167@bubble.sa.bigpond.net.au>
Alan Modra <amodra@bigpond.net.au> writes:
> Why don't we give ELF common symbols type STT_COMMON? According to
> the ELF spec, that would seem to be the right thing to do. I'm not
> proposing we make the change as that might affect glibc's ld.so,
> just curious.
STT_COMMON isn't in the original ELF ABI. The original ABI has
SHN_COMMON, but no STT_COMMON.
STT_COMMON was introduced to the binutils with this patch:
1999-12-27 Nick Clifton <nickc@cygnus.com>
* common.h: Upgrade to match Oct4, 1999 Draft ELF ABI Spec.
My reading of
http://www.sco.com/developers/gabi/latest/ch4.symtab.html
is that it would be correct for us to use STT_COMMON for common
symbols.
Ian