diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:46:13 +0200 |
commit | 8d89651ef729e560ad96dcfc002fcde6ff7f923b (patch) | |
tree | eb5be01c25f735d12fe9881ee6327c9b7e8bbe39 /meta-linaro-toolchain/recipes-core/glibc/glibc-linaro-2.20/mips-rld-map-check.patch | |
download | meta-linaro-8d89651ef729e560ad96dcfc002fcde6ff7f923b.tar.gz |
initial commit for Enea Linux 5.0 armdizzy-enea
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-linaro-toolchain/recipes-core/glibc/glibc-linaro-2.20/mips-rld-map-check.patch')
-rw-r--r-- | meta-linaro-toolchain/recipes-core/glibc/glibc-linaro-2.20/mips-rld-map-check.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-linaro-toolchain/recipes-core/glibc/glibc-linaro-2.20/mips-rld-map-check.patch b/meta-linaro-toolchain/recipes-core/glibc/glibc-linaro-2.20/mips-rld-map-check.patch new file mode 100644 index 0000000..9f593d6 --- /dev/null +++ b/meta-linaro-toolchain/recipes-core/glibc/glibc-linaro-2.20/mips-rld-map-check.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | |||
2 | On mips target, binutils currently sets DT_MIPS_RLD_MAP to 0 in dynamic | ||
3 | section if a --version-script sets _RLD_MAP to local. This is apparently | ||
4 | a binutils bug, but libc shouldn't segfault in this case. | ||
5 | |||
6 | see also: http://sourceware.org/bugilla/show_bug.cgi?id=11615 | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | 9/19/2010 - added by Qing He <qing.he@intel.com> | ||
11 | |||
12 | |||
13 | --- | ||
14 | Index: git/sysdeps/mips/dl-machine.h | ||
15 | =================================================================== | ||
16 | --- git.orig/sysdeps/mips/dl-machine.h 2014-08-27 04:58:11.840070587 +0000 | ||
17 | +++ git/sysdeps/mips/dl-machine.h 2014-08-27 04:58:11.832070587 +0000 | ||
18 | @@ -70,7 +70,8 @@ | ||
19 | /* If there is a DT_MIPS_RLD_MAP entry in the dynamic section, fill it in | ||
20 | with the run-time address of the r_debug structure */ | ||
21 | #define ELF_MACHINE_DEBUG_SETUP(l,r) \ | ||
22 | -do { if ((l)->l_info[DT_MIPS (RLD_MAP)]) \ | ||
23 | +do { if ((l)->l_info[DT_MIPS (RLD_MAP)] && \ | ||
24 | + (l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) \ | ||
25 | *(ElfW(Addr) *)((l)->l_info[DT_MIPS (RLD_MAP)]->d_un.d_ptr) = \ | ||
26 | (ElfW(Addr)) (r); \ | ||
27 | } while (0) | ||