Comment 6 for bug 641126

Revision history for this message
Richard Sandiford (rsandifo) wrote :

Thanks Matthias for the self-contained testcase, it was a massive help.

The problem appears to be caused by out-of-range Thumb-2 branches to
a PLT entry. The linker correct redirects the branch to a stub, but it doesn't
then record that the relocation has been resolved (i.e. doesn't need a
dynamic counterpart).

The patch that I'm about to attach fixes the bogus error, but it looks like
the error would trigger whenever these stubs are used with PLTs. I'm therefore
a bit worried that the PLT/stub combination seen in these two packages
might not have had much execution testing.