Support for ELF's STT_COMMON symbol type

Alan Modra amodra@bigpond.net.au
Wed Oct 10 06:29:00 GMT 2007


On Tue, Oct 09, 2007 at 10:49:09AM -0400, Daniel Jacobowitz wrote:
> On Tue, Oct 09, 2007 at 03:41:16PM +0100, Nick Clifton wrote:
> >   * Has a configure time option to enable the setting of the STT_COMMON type on 
> > symbols in generated executables.  By default this option is disabled, so the 
> > linker should continue to work with the current crop of loaders.
> 
> I don't really like this :-(

Agreed.  I think ld should detect whether STT_COMMON is supported by
some sort of test at link time.  This could be as simple as detecting
the target glibc version number.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list