PATCH: Fix alpha assembler crash
Jakub Bogusz
qboosh@pld-linux.org
Tue Dec 2 21:37:00 GMT 2003
On Tue, Dec 02, 2003 at 10:53:06AM +0000, Nick Clifton wrote:
> Hi H.J.
>
>
> > 2003-11-24 H.J. Lu <hongjiu.lu@intel.com>
> >
> > * config/tc-alpha.c (s_alpha_end): Don't crash if there is no
> > matching .ent.
>
> Approved - please apply.
>
> Cheers
> Nick
>
>
> >> I noticed that as from binutils 2.14.90.0.7 segfaults on alpha-linux on
> >> some wrongly generated file. It appeared that file had two '.end' for
> >> one function; but SEGV occurs in even simpler case, where '.end' is not
> >> preceded with '.ent' - just after error message:
> >>
> >> $ ~/gdb --args rpm/BUILD/binutils-2.14.90.0.7/gas/.libs/as-new as-test.S
>
> Could you add this test to the assembler testsuite as well please ?
Uh, it seems that I finally forget to actually attach my testcase ;o
Here it is:
$ cat as-test.S
.section .init
.set nomacro
.align 2
.globl _init
.end _init
The same was in first mentioned form, for two .end for one .ent:
.section .init
.set nomacro
.align 2
.globl _init
.ent _init
.end _init
.end _init
--
Jakub Bogusz http://cyber.cs.net.pl/~qboosh/
PLD Linux http://www.pld-linux.org/
More information about the Binutils
mailing list