[RFA:] Trivial test for .gnu.warning.SYMBOL

Hans-Peter Nilsson hp@bitrange.com
Sun Feb 13 19:22:00 GMT 2005


On Sun, 13 Feb 2005, Eric Botcazou wrote:
> > --- /dev/null	Tue Oct 29 15:57:07 2002
> > +++ symbol1ref.s	Sat Feb  5 03:12:49 2005
> > @@ -0,0 +1,3 @@
> > +	.text
> > +	.long symbol1
> > +
>
> That doesn't work on SPARC 64-bit,

Yes it does, at least for sparc64-linux-gnu cross from
i686-pc-linux-gnu.

> the relocation is truncated because 'long'
> is 4-byte wide.  The correct opcode would be '.xword' here.

The truncation doesn't matter for the purpose of this test, as
long as ld doesn't emit an error or warning message.

> I'm not really familiar with the testsuite harness: how can the problem be
> (elegantly) solved?

No need this time, but for future reference, look in
ld/testsuite/ld-lib.exp:run_dump_test, where the big header
comment provides all :-/ documentation.  There's a specific
directive to exclude targets.

brgds, H-P



More information about the Binutils mailing list