]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[ARC] PLT information was still being generated when symbol was forced_local.
authorCupertino Miranda <cmiranda@synopsys.com>
Fri, 2 Mar 2018 16:44:29 +0000 (17:44 +0100)
committerClaudiu Zissulescu <claziss@gmail.com>
Thu, 15 Nov 2018 15:27:38 +0000 (17:27 +0200)
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/ChangeLog
bfd/elf32-arc.c

index c01914fe274b04c29092b2788ea6f60cb071f85f..14e4107326cc5c4579f62cdca3065955f4c3581f 100644 (file)
@@ -5,6 +5,13 @@
        * elf32-arc.c (elf_arc_check_relocs): Changed.
 
 
+2018-11-15  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       Backport from mainline
+       2018-03-02  Cupertino Miranda <cmiranda@synopsys.com>
+       * elf32-arc.c (elf_arc_check_relocs): Changed.
+
+
 2018-11-15  Claudiu Zissulescu  <claziss@synopsys.com>
 
        Backport from mainline
index 8c1434a8cdcccac49a199f9554d861881f894dcc..052765ebdb85a2fd54e97b122d0bfb2a88e2adfa 100644 (file)
@@ -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.  */