[PATCH] [BZ #19178] ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA conflict
H.J. Lu
hjl.tools@gmail.com
Wed Oct 28 23:18:00 GMT 2015
On Wed, Oct 28, 2015 at 3:04 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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?
Here is the updated patch to keep only ELF_RTYPE_CLASS_PLT and
ELF_RTYPE_CLASS_COPY bits for prelink.
Mark, can you verify it with prelink?
Thanks.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Keep-only-ELF_RTYPE_CLASS_-PLT-COPY-bits-for-prelink.patch
Type: text/x-patch
Size: 2799 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20151028/669d10f4/attachment.bin>
More information about the Libc-alpha
mailing list