aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-28 02:29:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-01-28 02:29:01 +0000
commit57e5df3758ac4f05a3f116491606569954a237cd (patch)
tree77d523015b067e6dfc3938f3493a95e50a2e17ce /toolchain
parentb514156559f7db852046948b45ec9f11cf0d17f1 (diff)
downloadupstream-57e5df3758ac4f05a3f116491606569954a237cd.tar.gz
upstream-57e5df3758ac4f05a3f116491606569954a237cd.tar.bz2
upstream-57e5df3758ac4f05a3f116491606569954a237cd.zip
binutils: backport a fix for broken relocation entries on mips with -fPIE, fixes dbus-server crash with sstrip
SVN-Revision: 25188
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/binutils/patches/2.20.1/310-backport_fPIE_mips_fix.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/toolchain/binutils/patches/2.20.1/310-backport_fPIE_mips_fix.patch b/toolchain/binutils/patches/2.20.1/310-backport_fPIE_mips_fix.patch
new file mode 100644
index 0000000000..3a5dc6699c
--- /dev/null
+++ b/toolchain/binutils/patches/2.20.1/310-backport_fPIE_mips_fix.patch
@@ -0,0 +1,15 @@
+--- a/bfd/elfxx-mips.c
++++ b/bfd/elfxx-mips.c
+@@ -5696,9 +5696,9 @@ mips_elf_create_dynamic_relocation (bfd
+
+ /* We must now calculate the dynamic symbol table index to use
+ in the relocation. */
+- if (h != NULL
+- && (!h->root.def_regular
+- || (info->shared && !info->symbolic && !h->root.forced_local)))
++ if (!(h == NULL
++ || (h->root.def_regular
++ && (info->executable || info->symbolic || h->root.forced_local))))
+ {
+ indx = h->root.dynindx;
+ if (SGI_COMPAT (output_bfd))