From: John David Anglin Date: Sun, 11 Oct 2015 22:49:08 +0000 (-0400) Subject: Ignore references with relocs to discarded sections in .data.rel.ro.local on hppa... X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=da6e19a92645583da12dc2d15f54d2bd240fd3f2;p=deliverable%2Fbinutils-gdb.git Ignore references with relocs to discarded sections in .data.rel.ro.local on hppa-linux. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e84205f361..3e234b4105 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2015-10-11 John David Anglin + + * elf-hppa.h (elf_hppa_action_discarded): Ignore relocations in + .data.rel.ro.local. + 2015-10-07 Cupertino Miranda * archures.c: Remove support for older ARC. Added support for new diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h index b907f6e676..bb5820a38c 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;