From: Cupertino Miranda Date: Fri, 2 Mar 2018 16:44:29 +0000 (+0100) Subject: [ARC] PLT information was still being generated when symbol was forced_local. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06006c374b1766073fdc17704c6284232ee204d1;p=thirdparty%2Fbinutils-gdb.git [ARC] PLT information was still being generated when symbol was forced_local. A change upstream reveiled this issue, triggering an assert when linking glibc. bfd/ 2018-03-01 Cupertino Miranda * elf32-arc.c (elf_arc_check_relocs): Changed. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c01914fe274..14e4107326c 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -5,6 +5,13 @@ * elf32-arc.c (elf_arc_check_relocs): Changed. +2018-11-15 Claudiu Zissulescu + + Backport from mainline + 2018-03-02 Cupertino Miranda + * elf32-arc.c (elf_arc_check_relocs): Changed. + + 2018-11-15 Claudiu Zissulescu Backport from mainline diff --git a/bfd/elf32-arc.c b/bfd/elf32-arc.c index 8c1434a8cdc..052765ebdb8 100644 --- a/bfd/elf32-arc.c +++ b/bfd/elf32-arc.c @@ -2041,7 +2041,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. */