aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-hppa.h
diff options
context:
space:
mode:
authorJohn David Anglin <danglin@gcc.gnu.org>2015-10-11 18:49:08 -0400
committerJohn David Anglin <danglin@gcc.gnu.org>2015-10-11 19:08:54 -0400
commitda6e19a92645583da12dc2d15f54d2bd240fd3f2 (patch)
tree95e991ad32db0df50c13dfc52674b96dd97a83b9 /bfd/elf-hppa.h
parent7d8a636c9a234354c9b2ecf01b6e405bece190a1 (diff)
downloadgdb-da6e19a92645583da12dc2d15f54d2bd240fd3f2.zip
gdb-da6e19a92645583da12dc2d15f54d2bd240fd3f2.tar.gz
gdb-da6e19a92645583da12dc2d15f54d2bd240fd3f2.tar.bz2
Ignore references with relocs to discarded sections in .data.rel.ro.local on hppa-linux.
Diffstat (limited to 'bfd/elf-hppa.h')
-rw-r--r--bfd/elf-hppa.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index b907f6e..bb5820a 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -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;