A bug present in 3.2

Jim Wilson wilson@specifixinc.com
Mon Oct 27 23:46:00 GMT 2003


On Mon, 2003-10-27 at 01:09, Stelios Xanthakis wrote:
> static inline int f ()
> {
> 	static int i __attribute__ ((__section__(".gnu.linkonce.d.i")));
> 	return i++;
> }

That is an interesting looking trick, but it isn't clear if we can make
it work.  Having the variable be both static and in a linkonce section
seems somehow contradictory to me.

The immediate problem seems to be with ld.  I suggest you mention it on
the binutils mailing list.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list