qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: qemu-devel@nongnu.org
Subject: Re: [PROBLEM FOUND] qemu-arm on FC2 (was: Re: [Qemu-devel] ARM in big endian mode?)
Date: Fri, 06 Aug 2004 17:31:14 +0100	[thread overview]
Message-ID: <1091809874.4383.4914.camel@hades.cambridge.redhat.com> (raw)
In-Reply-To: <20040806155915.GA32210@xi.wantstofly.org>

On Fri, 2004-08-06 at 17:59 +0200, Lennert Buytenhek wrote:
> On Fri, Aug 06, 2004 at 03:55:07PM +0100, David Woodhouse wrote:
> 
> > > > > % ./qemu-arm ./x
> > > > > qemu: uncaught target signal 11 (Segmentation fault) - exiting
> >   <...>
> > > Just checked, and indeed, LE binaries segfault too.
> >   <...>
> > > So it looks like it (might have) worked in the past but broke somewhere
> > > between then and now.
> > 
> > Are you using a newer glibc now than the one you were using before?
> 
> Yes.  Now I'm using Fedora Core 2, but Red Hat 9 back then, I think.

Hmm. I meant the ARM glibc, not the host. I have a vague recollection
that using an older ARM libc made it work OK. Using statically linked
ARM binaries also made it work.

> I just found some time for some more testing, and it's FC2's noexecstack
> messing up in this particular case.  If I create, using gcc 2.95.3 and
> glibc 2.1.3 vanilla, a static ARM little-endian "Hello world" binary, and
> run it with qemu-arm latest CVS, it works if I specify -Wl,-z,execstack
> when linking qemu-arm, and crashes with sig11 if I do not.

With 0.6.0 this doesn't do it for me. This is a Familiar 0.7.2 image
with glibc 2.3.2

shinybook /home/dwmw2/working/pkgs/qemu/qemu-0.6.0/arm-user $ gcc -g -Wl,-T,/home/dwmw2/working/pkgs/qemu/qemu-0.6.0/ppc.ld -o qemu-arm elfload.o main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o nwfpe/softfloat.o nwfpe/fpa11.o nwfpe/fpa11_cpdo.o nwfpe/fpa11_cpdt.o nwfpe/fpa11_cprt.o nwfpe/fpopcode.o nwfpe/single_cpdo.o nwfpe/double_cpdo.o nwfpe/extended_cpdo.o libqemu.a  -lm -Wl,-z,execstack
shinybook /home/dwmw2/working/pkgs/qemu/qemu-0.6.0/arm-user $ ./qemu-arm /usr/qemu-arm/bin/echo hello
qemu: uncaught target signal 11 (Segmentation fault) - exiting 


-- 
dwmw2

  reply	other threads:[~2004-08-06 16:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-03 16:03 [Qemu-devel] ARM in big endian mode? Lennert Buytenhek
2004-07-04 11:30 ` Gianni Tedesco
2004-07-04 11:57   ` Lennert Buytenhek
2004-07-11 23:17     ` David Woodhouse
2004-07-11 23:43       ` Lennert Buytenhek
2004-08-06 14:55         ` David Woodhouse
2004-08-06 15:59           ` [PROBLEM FOUND] qemu-arm on FC2 (was: Re: [Qemu-devel] ARM in big endian mode?) Lennert Buytenhek
2004-08-06 16:31             ` David Woodhouse [this message]
2004-08-06 17:18               ` Lennert Buytenhek
2004-07-04 13:11   ` [Qemu-devel] ARM in big endian mode? Fabrice Bellard
2004-07-04 13:28     ` Lennert Buytenhek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1091809874.4383.4914.camel@hades.cambridge.redhat.com \
    --to=dwmw2@infradead.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).