This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Fix alpha assembler crash
- From: Jakub Bogusz <qboosh at pld-linux dot org>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: "H. J. Lu" <hjl at lucon dot org>, binutils at sources dot redhat dot com
- Date: Tue, 2 Dec 2003 22:40:43 +0100
- Subject: Re: PATCH: Fix alpha assembler crash
- Organization: PLD Linux Distribution
- References: <20031123235255.GB731@satan.blackhosts> <20031124222533.GA20749@lucon.org> <m3znebh4od.fsf@redhat.com>
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/