Ignore references with relocs to discarded sections in .data.rel.ro.local on hppa...
authorJohn David Anglin <danglin@gcc.gnu.org>
Sun, 11 Oct 2015 22:49:08 +0000 (18:49 -0400)
committerJohn David Anglin <danglin@gcc.gnu.org>
Sun, 11 Oct 2015 23:08:54 +0000 (19:08 -0400)
bfd/ChangeLog
bfd/elf-hppa.h

index e84205f3616017667dfeab1360c998763164ea2e..3e234b4105e1046ab4f1ea757c4562b75dd7fbdd 100644 (file)
@@ -1,3 +1,8 @@
+2015-10-11  John David Anglin  <danglin@gcc.gnu.org>
+
+       * elf-hppa.h (elf_hppa_action_discarded): Ignore relocations in
+       .data.rel.ro.local.
+
 2015-10-07  Cupertino Miranda  <cmiranda@synopsys.com>
 
        * archures.c: Remove support for older ARC. Added support for new
index b907f6e676c91b67eb5413c672083ab591265f2d..bb5820a38c9ca588565dab26d2da690c8e164402 100644 (file)
@@ -1212,6 +1212,11 @@ elf_hppa_sort_unwind (bfd *abfd)
 static unsigned int
 elf_hppa_action_discarded (asection *sec)
 {
+  /* Ignore relocations in .data.rel.ro.local.  This section can contain
+     PLABEL32 relocations to functions in discarded COMDAT groups.  */
+  if (strcmp (".data.rel.ro.local", sec->name) == 0)
+    return 0;
+
   if (strcmp (".PARISC.unwind", sec->name) == 0)
     return 0;