This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: [PATCH 1/2]: configure: use the .set directive when testing for .weak


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

Attachment: signature.asc
Description: This is a digitally signed message part.


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