Since the OpenOrbis PlayStation 4 Toolchain release and related guides on his YouTube Channel, PS4 scene developer @SpecterDev of SpecterDev.ca (Patreon) shared via Twitter a Blog Post detailing some of the challenges he encountered porting the MUSL C standard library for Linux operating systems to PS4... including a FreeBSD syscall patch that clears R8-R10 on sysret.
Download: musl-master.zip / GIT / OpenOrbis-musl-master.zip / GIT Fork by sleirsgoevy
Check out the full Adventures of porting MUSL to PS4 article on DayZeroSec.com, with an excerpt below to quote: Conclusion
There are a lot of low-level factors to consider when porting something like a libc, and it's easy to get frustrated and fall victim to subtle discrepancies. To test the MUSL port, I wrote a suite of unit tests some readers may find interesting, and compiled it with the OpenOrbis PS4 Toolchain against the newly-built MUSL libc static library. Below you can find a link to the MUSL PS4 port [1], the mentioned set of tests [2], the test results directly from the PS4 [3], and other references.
[1] https://github.com/OpenOrbis/musl
[2] https://github.com/OpenOrbis/OpenOrbis-PS4-Toolchain/tree/master/samples
[3] https://pastebin.com/Wzvbdk8s
[4] https://nvd.nist.gov/vuln/detail/CVE-2019-5595
[5] https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x86-return-values.html
Recently PS4 scene developer @theorywrong who shared the TheUpdaterToolkit also sent out a Tweet stating the next article on his blog at TheoryWrong.me (Patreon) will show the PS4 some love.
Download: musl-master.zip / GIT / OpenOrbis-musl-master.zip / GIT Fork by sleirsgoevy
Check out the full Adventures of porting MUSL to PS4 article on DayZeroSec.com, with an excerpt below to quote: Conclusion
There are a lot of low-level factors to consider when porting something like a libc, and it's easy to get frustrated and fall victim to subtle discrepancies. To test the MUSL port, I wrote a suite of unit tests some readers may find interesting, and compiled it with the OpenOrbis PS4 Toolchain against the newly-built MUSL libc static library. Below you can find a link to the MUSL PS4 port [1], the mentioned set of tests [2], the test results directly from the PS4 [3], and other references.
[1] https://github.com/OpenOrbis/musl
[2] https://github.com/OpenOrbis/OpenOrbis-PS4-Toolchain/tree/master/samples
[3] https://pastebin.com/Wzvbdk8s
[4] https://nvd.nist.gov/vuln/detail/CVE-2019-5595
[5] https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x86-return-values.html
Recently PS4 scene developer @theorywrong who shared the TheUpdaterToolkit also sent out a Tweet stating the next article on his blog at TheoryWrong.me (Patreon) will show the PS4 some love.