Skip to content
Snippets Groups Projects
Commit 57e5df37 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

binutils: backport a fix for broken relocation entries on mips with -fPIE,...

binutils: backport a fix for broken relocation entries on mips with -fPIE, fixes dbus-server crash with sstrip

SVN-Revision: 25188
parent b5141565
No related branches found
No related tags found
No related merge requests found
--- 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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment