RFC: weakref GCC attribute and .weakref assembly directive

Alexandre Oliva aoliva@redhat.com
Fri Oct 21 14:36:00 GMT 2005


On Oct 21, 2005, Alexandre Oliva <aoliva@redhat.com> wrote:

> On Oct 20, 2005, Nick Clifton <nickc@redhat.com> wrote:
>> sh-nto:
>> Fails with a seg-fault.
>> Recommendation:  Investigate cause of seg-fault.  It will
>> almost certainly be SH-specific, but it would be good to
>> prove this and even better to fix it.

> Erhm...  I can't trigger that on a i686-pc-linux-gnu host, but I
> *think* I did on amd64-linux-gnu, before realizing a number of targets
> were not 64-bit ready and deciding I couldn't, wouldn't make them so
> right now.

I'd failed to initialize the exp used as the value of a weakref
symbol.  It probably fails or works depending on the compiler you
use.

This revised patch addresses all of the issues you brought up, I
believe.  Testing for all targets hasn't completed yet, but since I'm
going to be away for several hours, I thought I'd post it for review.
Ok if tests pass?

Thanks,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gas-weakref.patch
Type: text/x-patch
Size: 38155 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20051021/5f8f66b0/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