public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: linux-kernel@vger.kernel.org
Subject: klibc: Need psABIs and #defines
Date: 9 Aug 2002 15:43:23 -0700	[thread overview]
Message-ID: <aj1gib$6vd$1@cesium.transmeta.com> (raw)

Hi all,

I could use some help with portability for non-x86 platforms.  In
particular, I need to figure out how to make crt0.[cS] to work on
various platforms, which unfortunately doesn't seem to be all that
obvious.  Unfortunately the SysV ABI creators didn't do the obvious
thing, which would have been to call _start() with its parameters
using the standard C calling sequence; instead, each platform seems to
put things on the stack in various ways (the sparc, for example, needs
a register window save area.)

a) If you'd be willing to write crt0.c/crt0.S for any platform, let me
   know. 

b) If you know where to get psABIs other than x86, x86-64, mips32 and
   sparc32, let me know.

c) If you know what #ifdefs one can use to test for any platform, let
   me know...

	-hpa
-- 
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt	<amsp@zytor.com>

                 reply	other threads:[~2002-08-09 22:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='aj1gib$6vd$1@cesium.transmeta.com' \
    --to=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.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