Page 1 of 1
gamecube crt0.o source file ?
Posted: Tue Jan 22, 2013 12:30 am
by happy_bunny
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 ?
Re: gamecube crt0.o source file ?
Posted: Mon Jan 28, 2013 8:49 pm
by mtheall
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/
Re: gamecube crt0.o source file ?
Posted: Mon Jan 28, 2013 11:37 pm
by WinterMute
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
Re: gamecube crt0.o source file ?
Posted: Sat Feb 02, 2013 11:09 pm
by happy_bunny
thanks mtheall / Wintermute.
@ Wintermute yer that link is what I was looking for cheers dude.