WarpOS-PPC -> OS4-PPC library glue code?

4 posts / 0 new
Last post
salass00
salass00's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2011-02-03 11:27
WarpOS-PPC -> OS4-PPC library glue code?

M68k -> OS4-PPC glue code is easy enough to generate using fdtrans:

fdtrans -c blah_lib.sfd

But if I try to do this for a .sfd that includes definitions of WarpOS PPC functions in the jumptable it complains about the "==abi" command used in the .sfd file.

I'm guessing I will have to do them manually somehow or write a better fdtrans that can do them for me but then I need to know what kind of ABI that WarpOS uses, like is it same as OS4 but with library base in r3 instead of interface pointer or is it something completely different and if so what?

alfkil
alfkil's picture
Offline
Last seen: 2 years 7 months ago
Joined: 2011-05-10 22:02
@salas00 I just learned from

@salas00

I just learned from Frank Wille that WarpOS uses PowerOpen ABI, which uses a TOC pointer in r2 and is, apparently, free of reallocations. Don't know what else you need to know.

salass00
salass00's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2011-02-03 11:27
I was thinking more like

I was thinking more like practical information like what registers are used for function arguments, what registers are scratch and what registers have to be saved/restored. Such information that would be necessary to write the glue/stub functions needed for the jumptable (I'll write them in PPC assembler if it proves necessary).

alfkil
alfkil's picture
Offline
Last seen: 2 years 7 months ago
Joined: 2011-05-10 22:02
I looked

I looked here:

ftp://www.sourceware.org/pub/binutils/ppc-docs/ppc-poweropen/

Didn't find it yet, but I bet it is in there somewhere.

Log in or register to post comments