(Manually) relocate PPC code?

Daniel Jacobowitz drow at false.org
Sun Jul 2 08:25:12 EST 2000


On Sat, Jul 01, 2000 at 08:39:14PM +0200, Wolfgang Denk wrote:
>
> Hi,
>
> I need to write some C code on PPC which must stay relocatable, resp.
> I must relocate it myself (all of code and data etc.). I'm using GNU
> tools.
>
> This is for a standalone application, _NOT_ running under Linux.
>
> Where can I find documentation about things like the format of the
> GOT etc., or ideally existing _simple_ (read: small) example code?
>
> All hints, pointers, ideas appreciated - TIA!

It's not terribly small, but - you REALLY should read ld.so.1's source.
There may be more information in the ABI document floating around, too.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan at debian.org         |  |       dmj+ at andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list