[PATCH 1/2]: configure: use the .set directive when testing for .weak
Mike Frysinger
vapier@gentoo.org
Tue Sep 21 18:17:00 GMT 2010
On Tuesday, September 21, 2010 14:10:30 Linas Vepstas wrote:
> The core problem is that the assembler uses the = sign for loads
> and stores, so e.g. "r21 = mem(r22)" is how one says "load r21
> with mem location pointed at by r22". (I didn't design this,
> someone 'clever' came up with this long ago) So, to avoid getting
> confused, the assembler uses the .set syntax for setting symbols.
> When it saw the "foo = bar" in the configure test, it complained
> that there aren't any registers called "foo" and "bar", and so the
> .weak test failed out.
your port isnt the only one that does this. it's why most of the binutils
testsuite uses the ".set" syntax to assign a symbol and not the "=" syntax.
crazy enough, this might even be documented in the assembler manual.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20100921/46ce4257/attachment.sig>
More information about the Libc-alpha
mailing list