ARM as crash
Richard Earnshaw
rearnsha@gcc.gnu.org
Tue Aug 30 10:44:00 GMT 2005
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.
More information about the Binutils
mailing list