Try a more generic version of the last two fixes. Assuming this is correct,

it should also be MI. The problem here arises when ld ends up linking a
link-once section with relocations against sections that point back to it
that are as yet unresolved. Instead of piecemeal finding sections we
think are potentially subject to this issue, just defer processing for
sections that have yet to be relocated instead of immediately bailing.
This commit is contained in:
Nathan Whitehorn 2010-12-07 23:44:07 +00:00
parent 215d29a201
commit aa2526259b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/projects/binutils-2.17/; revision=216281

View File

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