qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Rob Landley <rob@landley.net>
To: joakim.tjernlund@transmode.se
Cc: uclibc@uclibc.org, qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: Powerpc crt1.S change faulty
Date: Thu, 29 Mar 2007 12:53:16 -0400	[thread overview]
Message-ID: <200703291253.17092.rob@landley.net> (raw)
In-Reply-To: <1175155534.1597.13.camel@gentoo-jocke.transmode.se>

On Thursday 29 March 2007 4:05 am, Joakim Tjernlund wrote:
> Hi Rob
> 
> I saw your change to powerpc crt1.S and I don't agree with it.
> mr r8,r3 copies r3 to r8
> r8 needs to maps to rtld_fini in __uClibc_main and that maps to
> _dl_fini. Basically you have broken dynamic apps.

Sigh.  Ok.

What does the comment mean, then?

> For static apps NULL must be passed in r8 and currenly
> crt1.S relies on the kernel to zero r3(since r3 holds
> the return value of exec) before handing over user space.
> If this no longer is true we are in deep sh***
> 
> Can you check if r3 is zero in your kernel? what kernel version
> are you using? Are you using QEMU?

Yup.  I'm using qemu-ppc, and without this change a statically linked "hello 
world" segfaults on exit (but not on _exit()).  Lemme forward this message to 
the qemu list.

For reference, the change is:
http://uclibc.org/cgi-bin/viewcvs.cgi?rev=18270&view=rev

>    Jocke

Rob
-- 
Vista: Windows Millenium Second Edition

       reply	other threads:[~2007-03-29 16:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1175155534.1597.13.camel@gentoo-jocke.transmode.se>
2007-03-29 16:53 ` Rob Landley [this message]
2007-03-29 17:14   ` [Qemu-devel] RE: Powerpc crt1.S change faulty Joakim Tjernlund

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=200703291253.17092.rob@landley.net \
    --to=rob@landley.net \
    --cc=joakim.tjernlund@transmode.se \
    --cc=qemu-devel@nongnu.org \
    --cc=uclibc@uclibc.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).