Subject: Re: port-i386/6486: as dumps core
To: None <Anders.Hjalmarsson@economics.gu.se>
From: Todd Vierling <tv@pobox.com>
List: netbsd-bugs
Date: 11/23/1998 09:46:48
On Mon, 23 Nov 1998 Anders.Hjalmarsson@economics.gu.se wrote:

: >Description:
: 	as (gas.new) for i386 dumps core on the following code
: 	(cut down from mpn_add_n.S in gmp):
: 
: .text
: L0:
: 	addl	$(Loop-L0-3),%eax
: Loop:	movl	(%esi),%eax

This looks almost exactly like a bug I fixed in old as for sparc.  It's
likely that the "-3" is the problem here...

: fixP->fx_addsy is NULL so fixP->fx_addsy->bsym->flags & BSF_GLOBAL so the
: process gets a SIGSEGV

...it's a constant, not a symbol.

-- 
-- Todd Vierling (Personal tv@pobox.com; Bus. todd_vierling@xn.xerox.com)