This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 4/6] [ARC] PLT information was still being generated when symbol was forced_local.
- From: cupertinomiranda at gmail dot com
- To: binutils at sourceware dot org
- Cc: claziss at synopsys dot com, fbedard at synopsys dot com, nickc at redhat dot com, Cupertino Miranda <cmiranda at synopsys dot com>
- Date: Thu, 13 Sep 2018 16:38:37 +0100
- Subject: [PATCH 4/6] [ARC] PLT information was still being generated when symbol was forced_local.
- References: <20180913153839.7771-1-cupertinomiranda@gmail.com>
From: Cupertino Miranda <cmiranda@synopsys.com>
A change upstream reveiled this issue, triggering an assert when linking glibc.
bfd/
2018-03-01 Cupertino Miranda <cmiranda@synopsys.com>
* elf32-arc.c (elf_arc_check_relocs): Changed.
---
bfd/elf32-arc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c
index 4d36a41..180c4dc 100644
--- a/bfd/elf32-arc.c
+++ b/bfd/elf32-arc.c
@@ -2057,7 +2057,8 @@ elf_arc_check_relocs (bfd * abfd,
if (h == NULL)
continue;
else
- h->needs_plt = 1;
+ if (h->forced_local == 0)
+ h->needs_plt = 1;
}
/* Add info to the symbol got_entry_list. */
--
2.9.0