From owner-freebsd-emulation Wed Aug 25 11:10:18 1999 Delivered-To: freebsd-emulation@freebsd.org Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (Postfix) with ESMTP id B493814E42 for ; Wed, 25 Aug 1999 11:10:15 -0700 (PDT) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i336.ztm.euronet.nl [194.134.67.97]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id UAA21700; Wed, 25 Aug 1999 20:10:13 +0200 (MET DST) Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.3/8.9.3) with ESMTP id UAA11256; Wed, 25 Aug 1999 20:10:10 +0200 (CEST) (envelope-from marcel@scc.nl) Message-ID: <37C43182.7CCD1125@scc.nl> Date: Wed, 25 Aug 1999 20:10:10 +0200 From: Marcel Moolenaar Organization: SCC vof X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: Bruce Evans Cc: emulation@FreeBSD.ORG Subject: Re: SIGBUS for threaded Linux binaries (glibc2.1) [PSL_AC related?] References: <199908251721.DAA25993@godzilla.zeta.org.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Bruce Evans wrote: > >You're right. `linux_sigcode' in linux_locore.s doesn't have the 'right' > >size. Consequently `linux_szsigcode' is no multiple of 4 which results in a > >misaligned stack. I'll commit the fix shortly. > > This is ELF breakage. I've even noticed the problem before. `.align 2' > should be `.p2align 2', or better, ALIGN_TEXT as in locore.s. > > The committed fix is wrong. `.align 4' gives 16-byte alignment, which > is harmless but bogotifies the comment. Why not use the standard macro? I didn't know there were standard macros. I'll change it. BTW: I thought '.p2align 4' gives 16-byte alignment and '.align 4' 4-byte alignment? What's the difference between .p2align and .align then? -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ Amsterdam, The Netherlands tel: +31 20 4200655 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message