[PATCH] [BZ #19178] ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA conflict
H.J. Lu
hjl.tools@gmail.com
Wed Oct 28 22:04:00 GMT 2015
On Wed, Oct 28, 2015 at 6:42 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Wed, Oct 28, 2015 at 4:49 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> _dl_debug_bindings updates relocation type class with 4 and 8. But
>> ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA may be defined to 4. This patch
>> adds ELF_RTYPE_CLASS_TLS/ELF_RTYPE_CLASS_IFUNC and use them in
>> _dl_debug_bindings.
>>
>> Tested on i686 and x86-64. OK for master and 2.22 branch?
>>
>>
>> H.J.
>> --
>> [BZ #19178]
>> * dl-lookup.c (_dl_debug_bindings): Replace 4 and 8 with
>> ELF_RTYPE_CLASS_TLS and ELF_RTYPE_CLASS_IFUNC.
>> * sysdeps/generic/ldsodefs.h (ELF_RTYPE_CLASS_TLS): New.
>> (ELF_RTYPE_CLASS_IFUNC): Likewise.
>
>
> It doesn't work with prelink.
>
Here is the correct patch. Verified with prelink. OK for master
and 2.22 branch?
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Clear-ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA-for-prel.patch
Type: text/x-patch
Size: 2644 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151028/4bc80442/attachment.bin>
More information about the Libc-alpha
mailing list