diff --git a/contrib/binutils/bfd/elf64-ppc.c b/contrib/binutils/bfd/elf64-ppc.c index f9f8ae9f4a9..c69be3b99f3 100644 --- a/contrib/binutils/bfd/elf64-ppc.c +++ b/contrib/binutils/bfd/elf64-ppc.c @@ -9750,10 +9750,7 @@ ppc64_elf_action_discarded (asection *sec) if (strcmp (".toc1", sec->name) == 0) return 0; - if (strcmp (".got", sec->name) == 0) - return 0; - - if (strcmp (".got1", sec->name) == 0) + if (sec->flags & SEC_RELOC) return 0; return _bfd_elf_default_action_discarded (sec);