This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]