* elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if

we haven't seen expected -mcmodel=medium/large code relocs.
This commit is contained in:
Alan Modra 2011-08-19 08:12:08 +00:00
parent 97ffa485e7
commit af75cb9c9b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-08-19 Alan Modra <amodra@gmail.com>
* elf64-ppc.c (ppc64_elf_edit_toc): Ignore can_optimize bit if
we haven't seen expected -mcmodel=medium/large code relocs.
2011-08-18 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_read_segment): Initialize list.

View File

@ -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;