[PATCH, RFC] weakref error with ppc -m64 -mcall-aixdesc

Alexandre Oliva aoliva@redhat.com
Thu Nov 17 03:19:00 GMT 2005


An asm source such as:

.weakref foo, bar
.weakref .foo, .bar

should not have any entries in the symbol table, but what we were
getting was a strong undef for .bar.  After fixing that, and adding:

bl .foo

I noticed that .bar made it to the symbol table as weak, but bar
didn't make it at all, contrary to the intent of the code I'd just
tweaked, so I narrowed the condition used to drop weakrefd symbols
such that both bar and .bar would make it as weak symbols.

Ok to install?  Tested on amd64-linux-gnu-x-ppc64-linux-gnu.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-weakref-ppc-dotsym.patch
Type: text/x-patch
Size: 1369 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20051117/347ee804/attachment.bin>
-------------- next part --------------


-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}


More information about the Binutils mailing list