Relink a clean ELF, then lay out app, libs, and app0

Official files on GitHub Releases. Commands from USAGE.md. Conversion is not gameplay.

Terminal capture of the official Linux relinker-v0.1.1 usage line, plus the documented Windows and Linux convert commands from USAGE.md.
Usage text from the v0.1.1 Linux relinker binary and docs/user/USAGE.md. Binary not stored in this repo.
  1. Download a matching pair

    From v0.1.1 take the relinker and host libraries for one OS.

    Which two files

  2. Lay out the input

    Clean ELF beside exactly one of sce_module/, sce_modules/, or prx/. SELF/fSELF files are skipped.

    source/
        input.elf
        sce_module/
            <bundled ELF modules>
  3. Convert for your host

    Default output is Linux ELF. Use --windows for PE — an .exe filename is not enough.

    Windows PowerShell:

    .\relinker-v0.1.1.exe --windows source\input.elf app.exe

    Linux:

    chmod +x ./relinker-v0.1.1
    ./relinker-v0.1.1 source/input.elf app.elf

    Add --to-intel on Intel hosts for supported AMD-only instructions. Exit code 2 means conversion failed.

  4. Build the runtime folder

    Runtime folder from USAGE.md: app.exe or app.elf beside libs/ host libraries and app0/ game resources.
    Layout quoted from boykopovar/AnyPS5 docs/user/USAGE.md
    app.elf  or  app.exe
    libs/
        *.prx
    app0/
        <app resources>
        sce_module/
            <converted modules>

    On Windows, original PS5 libraries in libs/ often fail with error 193. Official archives already include the MinGW DLLs; missing them can surface as error 126.

  5. Launch from a terminal

    Linux:

    chmod +x app.elf
    ./app.elf

    Windows PowerShell:

    .\app.exe

    Keyboard mapping: INPUT_MAPPING.md.

FAQ

What machine do I need?

Windows 10/11 or Linux, x86-64, Vulkan 1.1. Set ANYPS5_GPU to pick a device.

Windows commit limit / Linux udmabuf?

If sceKernelMapDirectMemory fails, enlarge the page file. Some Linux drivers need write access to /dev/udmabuf.

Optional web converter?

boykopovar.github.io/AnyPS5. This site only links out.