Page 1 of 1

Invalid Opcode on ogc_crt0?

Posted: Sun Apr 28, 2024 10:13 pm
by Fancy2209
Hello, I am very new to porting stuff to the Wii and was trying to port Sonic Robo Blast 2.2.13 to the Wii, but when I finally got it to compile, Dolphin printed this:
Image
Weird thing is, addr2line says it's from ogc_crt0, who is responsible for starting the GC Hardware.

Code: Select all

$ /opt/devkitpro/devkitPPC/bin/powerpc-eabi-addr2line.exe -e lsdl2srb2 0x8000407c
ogc_crt0.o:?
Anyone knows what could be the reason for it to be failing there??
Here's a diff of my changes agaisnt the original code of the game
https://github.com/STJr/SRB2/compare/22 ... 9:SRB2:Wii

Re: Invalid Opcode on ogc_crt0?

Posted: Tue Apr 30, 2024 5:44 pm
by Fancy2209
I posted the wrong addr2line output

Code: Select all

0x802c7684
SYS_Init
/home/davem/projects/devkitpro/pacman-packages/libogc/src/libogc-2.6.0/libogc/system.c:1050
0x8000407c
startup
ogc_crt0.o:?
the adress for the PC changed because I attempted to build without libpng and libz