summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/binutils/bfd/elf64-ppc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/binutils/bfd/elf64-ppc.c b/contrib/binutils/bfd/elf64-ppc.c
index f9f8ae9..c69be3b 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);
OpenPOWER on IntegriCloud