linux-mips
[Top] [All Lists]

Re: segfault

To: linux-mips@oss.sgi.com
Subject: Re: segfault
From: Jim Paris <jim@jtan.com>
Date: Thu, 13 Sep 2001 14:59:47 -0400
In-reply-to: <20010904235410.A8310@neurosis.mit.edu>; from jim@jtan.com on Tue, Sep 04, 2001 at 11:54:10PM -0400
References: <20010904235410.A8310@neurosis.mit.edu>
Reply-to: jim@jtan.com
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
> I'm trying to get Linux working on my handheld PC (the Sharp Tripad,
> very similar to the Vadem Clio), but I'm having userland problems.  
> Some binaries compile and run fine, while others give a segfault right
> away.

Aha!  I think I've finally found the problem, thanks to a lightbulb
that blinked on after reading Kjeld's mail about optimization
problems.  I compile everything with -O3 (it's in my environment) and
that apparently resulted in broken binaries.  I rebuilt binutils, gcc,
glibc, and all of my test binaries with -O1.. and everything appears
to work perfectly.

(after wrestling with this for weeks on end, I feel pretty stupid that
it turned out to be something so simple, but I'm also quite elated
that it works)

Next step: conquer the world!  (or, at least, set up user-space stuff)

-jim

<Prev in Thread] Current Thread [Next in Thread>