From 2faa00c1493ff328586d48e6bf852664a678278e Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 26 Jul 2011 23:44:38 +0000 Subject: [PATCH] binutils: backport a fix for broken relocation entries on mips with -fPIE, fixes dbus-server crash with sstrip (backport of r25188, fixes #9810) git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@27793 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../2.19.1/310-backport_fPIE_mips_fix.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 toolchain/binutils/patches/2.19.1/310-backport_fPIE_mips_fix.patch diff --git a/toolchain/binutils/patches/2.19.1/310-backport_fPIE_mips_fix.patch b/toolchain/binutils/patches/2.19.1/310-backport_fPIE_mips_fix.patch new file mode 100644 index 000000000..19c0772c6 --- /dev/null +++ b/toolchain/binutils/patches/2.19.1/310-backport_fPIE_mips_fix.patch @@ -0,0 +1,15 @@ +--- a/bfd/elfxx-mips.c ++++ b/bfd/elfxx-mips.c +@@ -5670,9 +5670,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)) -- 2.35.1