]> code.ossystems Code Review - openembedded-core.git/commit
glibc & eglibc: fix mips DT_MIPS_RLD_MAP checking
authorQing He <qing.he@intel.com>
Sat, 25 Sep 2010 07:19:45 +0000 (15:19 +0800)
committerSaul Wold <Saul.Wold@intel.com>
Mon, 27 Sep 2010 15:59:16 +0000 (08:59 -0700)
commit0f55d28a4d1f425343eb5aeae3eb7ffb3efd266a
tree50f89281614c8266ce092c1c6fb1865b4bf90098
parent5c8fad6544421e238da2ff33f5bbf1ed68fbc8be
glibc & eglibc: fix mips DT_MIPS_RLD_MAP checking

On mips target, binutils currently sets DT_MIPS_RLD_MAP to 0 in dynamic
section if a --version-script sets _RLD_MAP to local. This is apparently
a binutils bug, but libc shouldn't segfault in this case.

Add sanity check on the entry to avoid segfault, fixes [BUGID #287].

Signed-off-by: Qing He <qing.he@intel.com>
meta/recipes-core/eglibc/eglibc-2.12/mips-rld-map-check.patch [new file with mode: 0644]
meta/recipes-core/eglibc/eglibc_2.12.bb
meta/recipes-core/glibc/glibc-2.10.1/mips-rld-map-check.patch [new file with mode: 0644]
meta/recipes-core/glibc/glibc_2.10.1.bb