]> code.ossystems Code Review - openembedded-core.git/commit
glibc: Fix ld.so / prelink interface for ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA
authorMark Hatle <mark.hatle@windriver.com>
Fri, 30 Oct 2015 14:48:27 +0000 (09:48 -0500)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Dec 2015 07:03:16 +0000 (23:03 -0800)
commit73919830f88f2d28da973e72fbdfaab591a5af69
treec9fb64b6c201c6ce60c46d88775ff3317e839989
parent44adc575be5d9b9ad0d87e143467aeeadde2fe89
glibc: Fix ld.so / prelink interface for ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA

A bug in glibc 2.22's ld.so interface for the prelink support causes
the displayed values to be incorrect.  The included path fixes this
issue.

   Clear ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA for prelink

   prelink runs ld.so with the environment variable LD_TRACE_PRELINKING
   set to dump the relocation type class from _dl_debug_bindings.  prelink
   has the following relocation type classes:

   where ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA has a conflict with
   RTYPE_CLASS_TLS.

   Since prelink doesn't use ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA, we
   should clear the ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA bit when the
   DL_DEBUG_PRELINK bit is set.

 (From OE-Core master rev: 12c86bdcc60c54e587a896b0dceb8bb6cc9ff7e3)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/recipes-core/glibc/glibc/0028-Clear-ELF_RTYPE_CLASS_EXTERN_PROTECTED_DATA-for-prel.patch [new file with mode: 0644]
meta/recipes-core/glibc/glibc_2.22.bb