gamecube crt0.o source file ?

Post Reply
happy_bunny
Posts: 28
Joined: Mon May 02, 2011 10:13 pm

gamecube crt0.o source file ?

Post by happy_bunny » Tue Jan 22, 2013 12:30 am

I would like to have a look at the source for

C:\devkitPro\devkitPPC\powerpc-eabi\lib\crt0.o

does anyone know the location of the crt0.s (gamecube not wii) also whats the name of the linker script and its location for the gamecube ?

mtheall
Posts: 210
Joined: Thu Feb 03, 2011 10:47 pm

Re: gamecube crt0.o source file ?

Post by mtheall » Mon Jan 28, 2013 8:49 pm

Code: Select all

$ nm -l /opt/devkitPro/devkitPPC/powerpc-eabi/lib/crt0.o
00000000 G __atexit
         U __bss_start
         U __sbss_end
         U __sbss_start
         U __stack
         U _end
00000004 T _start	/home/davem/projects/devkitpro/buildscripts/.devkitPPC/powerpc-eabi/newlib/powerpc-eabi/libgloss/rs6000/crt0.S:62
         U atexit	crt0.S:0
         U exit	/home/davem/projects/devkitpro/buildscripts/.devkitPPC/powerpc-eabi/newlib/powerpc-eabi/libgloss/rs6000/crt0.S:125
         U main	/home/davem/projects/devkitpro/buildscripts/.devkitPPC/powerpc-eabi/newlib/powerpc-eabi/libgloss/rs6000/crt0.S:122
So the source is in newlib/powerpc-eabi/libgloss/rs6000/crt0.S (i.e. download the newlib source or have the buildscripts do it for you).

The linker scripts are in buildscripts/dkppc/crtls/

WinterMute
Site Admin
Posts: 1859
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: gamecube crt0.o source file ?

Post by WinterMute » Mon Jan 28, 2013 11:37 pm

That's probably not the crt0 you're looking for - libogc contains it's own crt0. The one at powerpc-eabi\lib\crt0.o is simply there to avoid problems when configuring autotools based projects and libraries for cross compilation.

https://sourceforge.net/p/devkitpro/lib ... ogc_crt0.S
Help keep devkitPro toolchains free, Donate today

Personal Blog

happy_bunny
Posts: 28
Joined: Mon May 02, 2011 10:13 pm

Re: gamecube crt0.o source file ?

Post by happy_bunny » Sat Feb 02, 2013 11:09 pm

thanks mtheall / Wintermute.

@ Wintermute yer that link is what I was looking for cheers dude.

Post Reply

Who is online

Users browsing this forum: No registered users and 64 guests