bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/12980] bad GOT reloc generation in -shared for STV_PROTECTED w


From: ian at airs dot com
Subject: [Bug gold/12980] bad GOT reloc generation in -shared for STV_PROTECTED with primary PLT/copy reference
Date: Tue, 12 Jul 2011 22:35:01 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12980

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #2 from Ian Lance Taylor <ian at airs dot com> 2011-07-12 22:34:43 
UTC ---
I'm not convinced that this case is very interesting.  The test fails when
using gcc's visibility attribute, because in that case gcc generates a
PC-relative reloc (on x86_64) and there is no way that the function addresses
can match.  It only works for glibc because glibc uses .protected in an asm
rather than using the visibility attribute.  On the other hand, for the same
reason, it doesn't cost very much; normal code will never use a GOT entry for a
protected variable.  So I went ahead and implemented this in gold in the spirit
of keeping glibc happy.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]