Files
LightningMods 36ca31d21b ItemzCore version: 1.4-V-2024-01-23T18:42:41
- Fixed dumping DLCs and AC w/p data
- Added an Install all PKGs option for folders with more than 1 PKG
- Installing a PKG will no longer boot you back to settings
- Carried over some improvements from the PS5 version of IF
- Replaced reg. vectors for ThreadSafeVectors
- Added the Chinese lang files
- Fixed a bug that would cause the Utility thread to deadlock
- Fixed a Bug that caused the daemon not to give a backtrace on 9.00
2024-01-23 18:56:00 -05:00
..

Sample: Jailbreak PRX

Version

This project contains example code for creating a library with a Jailbreak function. It will generate an output .prx (Playstation Relocatable Executable) for the PS4, as well as a stub .so shared object file for linking on the PC side.

to Compile this PRX correctly you must replace your link.x with this one (from OO) here $OO_PS4_TOOLCHAIN/link.x

Fix building libraries

AND Replace $OO_PS4_TOOLCHAIN/bin/linux/create-lib and $OO_PS4_TOOLCHAIN/bin/linux/create-eboot with these

Fix create-eboot generating non-contiguous relro and data segments #112 create-eboot/create-lib #45

Directory structure

Jailbreak PRX\Jailbreak
|-- Jailbreak
    |-- x64
        |-- Debug                          // Object files / intermediate directory
    |-- build.bat                          // Batch file for building on Windows
    |-- main.cpp                           // Mira Jailbreak and main function
    |-- mira_header.h
    |-- multi-jb.c                         // all the Jailbreak code for HEN
    |-- multi-jb.h                         // Jailbreak Offsets
    |-- new.s                              // ASM for syscall etc
|-- jb.prx                                 // final library file (not present until built)
|-- jb.so                                   // final library stub (not present until built)
|-- Makefile                               // Make rules for building on Linux

The ELF, Orbis ELF (OELF), and object files will all be stored in the intermediate directory x64/Debug. The final library prx and stub files will be found in the root directory.

Libraries used

  • libSceLibcInternal
  • libkernel

Building

On Linux, a makefile has been included.

To build this project, the developer will need clang, which is provided in the toolchain. The OO_PS4_TOOLCHAIN environment variable will also need to be set to the root directory of the SDK installation.

Linux Run the makefile.

make

Reference(s) used

Libjbc - https://github.com/sleirsgoevy/ps4-libjbc

Author(s)

  • LM
  • Sleirsgoevy
  • Specter