This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: linker crash in arm stub generation
On Fri, Jun 12, 2009 at 03:19:21PM +0200, Christophe LYON wrote:
> I think your patch is not adequate: it will prevent the stub code from
> being generated, but the user code will still jump to the stub. So the
> link won't fail, but the result will be wrong.
>
> Instead, I propose this patch, which prevents mode-switching stub
> generation when the call goes through a PLT entry.
>
> I think there should already be a test for this in the testsuite, I have
> probably forgotten this configuration.
This looks good to me - and I agree that a test would be helpful!
--
Daniel Jacobowitz
CodeSourcery