From owner-freebsd-alpha Sat Aug 18 4:10:59 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id D114A37B412; Sat, 18 Aug 2001 04:10:52 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f7IBAqM59059; Sat, 18 Aug 2001 04:10:52 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 9B758380B; Sat, 18 Aug 2001 04:10:52 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: alpha@FreeBSD.ORG Cc: obrien@FreeBSD.ORG, dfr@FreeBSD.ORG Subject: Re: HEADS UP - tree broken in -current for Alpha In-Reply-To: <20010818094624.68FC838CC@overcee.netplex.com.au> Date: Sat, 18 Aug 2001 04:10:52 -0700 From: Peter Wemm Message-Id: <20010818111052.9B758380B@overcee.netplex.com.au> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Peter Wemm wrote: > If you're running -current on alpha, you will need to back out the > recent change to: > src/contrib/gcc.295/config/alpha/crtbegin.asm > > Otherwise everything will segfault after your 'installworld' at > exit time. The following diff seems to fix it.. I dont know more than a few bits of ancient C++ (back in cfront days), but it does even seem to do static constructors/destructors ok with this. I am *not* an Alpha assembler expert, this could be the alpha version of the fabled HCF instruction for all I know. :-) Index: crtbegin.asm =================================================================== RCS file: /home/ncvs/src/contrib/gcc.295/config/alpha/crtbegin.asm,v retrieving revision 1.2 diff -u -r1.2 crtbegin.asm --- crtbegin.asm 2001/08/17 22:54:26 1.2 +++ crtbegin.asm 2001/08/18 11:07:37 @@ -68,7 +68,8 @@ br $29,1f 1: ldgp $29,0($29) jsr $26,__do_global_dtors_aux - ldgp $29,0($29) + br $29,2f +2: ldgp $29,0($29) # Ideally this call would go in crtend.o, except that we can't # get hold of __EH_FRAME_BEGIN__ there. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message