From owner-freebsd-alpha Sun Mar 26 19:23:30 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id 7EF7A37BAC8; Sun, 26 Mar 2000 19:23:27 -0800 (PST) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id WAA18104; Sun, 26 Mar 2000 22:23:25 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.9.3/8.9.1) id WAA21599; Sun, 26 Mar 2000 22:22:55 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sun, 26 Mar 2000 22:22:55 -0500 (EST) To: obrien@FreeBSD.ORG Cc: nm , freebsd-alpha@FreeBSD.ORG, jdp@FreeBSD.ORG Subject: Re: g++ problems? In-Reply-To: <20000326123439.C86753@dragon.nuxi.com> References: <3.0.32.20000326131248.03413770@mail.vt.edu> <20000326123439.C86753@dragon.nuxi.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14558.54055.418869.734754@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org David O'Brien writes: > On Sun, Mar 26, 2000 at 01:12:49PM -0500, nm wrote: > > Are there problems with g++ on 4.0-RELEASE? > > I tried a simple hello world program, but I get > > unaligned access's out the wazoo. > > This has happened for as long as I've tired hello.cxx on 4-CURRENT (which > hasn't been very long that I've done this test). Do you know if there > was some point in the past where this wasn't happening? > > Using printf() instead of I/O streams w/G++ gives the same. Using gcc on > the same hello.c doesn't. I suspect this has something to do with the rtld process, as the addresses (0x1600baf84...) are in the range which is typically used by ld-elf. Also, if one links binaries statically (-static), the problem seems to go away. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message