OpenOrbis/OpenOrbis-PS4-Toolchain

setjmp/longjmp are missing from libc.a

sleirsgoevy opened this issue · 4 comments

Title says all. There are setjmp.lo and longjmp.lo in libc.a, but they are empty.

+1ing that.
Can't build Lua because of their absence.

Wait a second, both seem to be implemented in OOMusl:
https://github.com/OpenOrbis/musl/blob/master/src/setjmp/x86_64/setjmp.s

Maybe use Musl's implementation of setjmp/longjmp? 🤔

If I'm reading correctly, this should be possible by simply copying that file into a ps4 arch directory, the lack of the ps4 arch directory for setjmp is probably why they're missing / not being compiled in. I'll try to give this a go and test in the next day or two.