This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM as crash
On Mon, 2005-08-29 at 17:37, Nick Clifton wrote:
> Hi Shaun,
>
> > $ echo 'bl 0' >foo.s
> > $ arm-elf-as foo.s
> > Segmentation fault
>
> Oops. Fixed by applying the attached patch (which I am about to check in).
>
> Cheers
> Nick
>
> gas/ChangeLog
>
> 2005-08-29 Nick Clifton <nickc@redhat.com>
>
> * write.c (generic_force_reloc): Do not call S_FORCE_RELOC if
> there is no symbol.
That might avoid the crash, but I'm not sure it's the 'right thing'. In
this case, remember that the BL instruction is PC-relative, so we do
need to express the branch to '0' somehow.
R.