lkml.org 
[lkml]   [2002]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectklibc: Need psABIs and #defines
Date
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>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.024 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site