aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2011-08-19 08:12:08 +0000
committerAlan Modra <amodra@gmail.com>2011-08-19 08:12:08 +0000
commitaf75cb9c9b7ce28a403aec4dfadef2f15449b3f7 (patch)
treed1dd7158ce10caeaa47a47cdf6994fcfa33cdf14 /bfd/elf64-ppc.c
parent97ffa485e79ca96e9a3b1681b4a2ce25807719fc (diff)
downloadgdb-af75cb9c9b7ce28a403aec4dfadef2f15449b3f7.zip
gdb-af75cb9c9b7ce28a403aec4dfadef2f15449b3f7.tar.gz
gdb-af75cb9c9b7ce28a403aec4dfadef2f15449b3f7.tar.bz2
* elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if
we haven't seen expected -mcmodel=medium/large code relocs.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 677de04..b71a11b 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -8267,7 +8267,7 @@ ppc64_elf_edit_toc (struct bfd_link_info *info)
some_unused = 1;
last = 0;
}
- else if (*drop)
+ else if (*drop & ref_from_discarded)
{
some_unused = 1;
last = ref_from_discarded;