mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 05:34:36 +02:00
binutils: backport a fix for broken relocation entries on mips with -fPIE, fixes dbus-server crash with sstrip
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25188 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
87d30b549d
commit
089411e72d
@ -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))
|
Loading…
Reference in New Issue
Block a user