1.1 --- a/patches/eglibc/2_16/003-mips-rld-map-check.patch Fri Sep 21 16:38:18 2012 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,26 +0,0 @@
1.4 -
1.5 -On mips target, binutils currently sets DT_MIPS_RLD_MAP to 0 in dynamic
1.6 -section if a --version-script sets _RLD_MAP to local. This is apparently
1.7 -a binutils bug, but libc shouldn't segfault in this case.
1.8 -
1.9 -see also: http://sourceware.org/bugilla/show_bug.cgi?id=11615
1.10 -
1.11 -Upstream-Status: Pending
1.12 -
1.13 -9/19/2010 - added by Qing He <qing.he@intel.com>
1.14 -
1.15 -
1.16 ----
1.17 -diff -ru glibc-2.10.1.orig/ports/sysdeps/mips/dl-machine.h glibc-2.10.1/ports/sysdeps/mips/dl-machine.h
1.18 ---- glibc-2.10.1.orig/ports/sysdeps/mips/dl-machine.h 2009-05-16 16:36:20.000000000 +0800
1.19 -+++ glibc-2.10.1/ports/sysdeps/mips/dl-machine.h 2010-09-19 09:11:53.000000000 +0800
1.20 -@@ -70,7 +70,8 @@
1.21 - /* If there is a DT_MIPS_RLD_MAP entry in the dynamic section, fill it in
1.22 - with the run-time address of the r_debug structure */
1.23 - #define ELF_MACHINE_DEBUG_SETUP(l,r) \
1.24 --do { if ((l)->l_info[DT_MIPS (RLD_MAP)]) \
1.25 -+do { if ((l)->l_info[DT_MIPS (RLD_MAP)] && \
1.26 -+ (l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) \
1.27 - *(ElfW(Addr) *)((l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) = \
1.28 - (ElfW(Addr)) (r); \
1.29 - } while (0)