Go to file
David 4f1ae1cc3a feat(libkernel): implement execv and execve as throwing exports
XPSemu PPSA97358 imports both from libkernel.prx; with the imports ahead
of them covered, its predicted next stops (relink registry order, not an
observed run) are:

  FAIL: unresolved ELF import KaK52lYTBIs from libkernel.prx  (execv, 7 call sites)
  FAIL: unresolved ELF import kdguLiAheLI from libkernel.prx  (execve, 4 call sites)

Today the title stops earlier at the observed
  FAIL: unresolved ELF import aRo9AhFUXcM from libkernel.prx  (sigsetjmp, merged in #3486)

As for execvp (#2827), the process image cannot be replaced here, so both
throw with the execvp message pattern once FreeBSD 11's execve would start
loading the image (freebsd-src 8c639945, sys/kern/kern_exec.c
exec_copyin_args, do_execve, exec_check_permissions; lib/libc/gen/exec.c
execv passes environ). Before that they fail as FreeBSD does: EFAULT for a
null argument vector or path, ENOENT and ENOTDIR from the lookup as stat
reports it, EACCES for a path that is not a regular file. Paths of
PATH_MAX bytes or more and strings over ARG_MAX throw instead of guessing
the console's limits. The execv calls in XPSemu's sources run in a fork
child (net/tap.c), and its fork fails with ENOSYS (ZiZc3/XPSemu 8eec07b4,
ps5/compat/libc_missing.c, ps5/build-title.sh --defsym).

NIDs computed with tools/nid_names.py and confirmed in aerolib.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 57f0fa37132bc6c78bc02282044a00e2db859484)
2026-10-13 15:19:19 +02:00
.github Merge pull request #5135 from boykopovar/feat/web-relinker-ui 2026-10-13 15:31:28 +03:00
3rdparty refactor(web): load zip.js from pinned cdn version 2026-10-13 14:02:46 +03:00
cmake feat(agc): report performance timer scopes to Tracy with APS5_ENABLE_TRACY 2026-10-12 12:55:40 -07:00
core feat(libkernel): implement execv and execve as throwing exports 2026-10-13 15:19:19 +02:00
demo/web fix(web): reject windows folder output before writing files 2026-10-13 14:53:19 +03:00
docs feat(libkernel): implement execv and execve as throwing exports 2026-10-13 15:19:19 +02:00
tools Merge pull request #3919 from GalaxyGamingFR/fix/stubgen-stdout-newlines 2026-10-13 15:09:35 +02:00
.gitignore chore(gitignore): ignore build_tools/ secondary CMake tree 2026-09-25 16:27:49 -07:00
.gitmodules refactor(web): load zip.js from pinned cdn version 2026-10-13 14:02:46 +03:00
CMakeLists.txt Merge pull request #3919 from GalaxyGamingFR/fix/stubgen-stdout-newlines 2026-10-13 15:09:35 +02:00
CONTRIBUTING.md Merge pull request #4590 from AlxcBTW/feat/perf-template 2026-10-12 23:11:53 +02:00
LICENSE initial commit 2026-08-03 20:02:52 +03:00
README.md ci(pages): build and deploy wasm converter 2026-10-13 15:26:04 +03:00

README.md

About

Tool for automatic executables porting to Linux and Windows.

Online converter - files stay on your device.

Discord

Includes a relinker that converts executable to the target system's native format and implementations of system prx libraries suitable for dynamic linking. No emulation or separate runtime process.

Usage, Build instructions, Architecture, Technical debt of the project, code style conventions, contributing

Status

libraries shaders

progress map

Progress history

* System libraries: percentage of the functions known to the project so far (declared in core/libs/prx), not of every PS5 system function. The total grows as more functions are declared.

Unsupported or unexpected states strictly throw std::runtime_error. what() is printed to stderr and the process terminates.

The shader recompiler successfully produces SPIR-V (validated via Spirv-Tools when built with ANYPS5_ENABLE_SPIRV_TOOLS).

Compatibility

Per-game progress (stage reached, open blockers, libraries and GPU coverage) is tracked on the blocker map, a community project built from public GitHub data (source). Test reports go in the Game bring-up discussions, one thread per title.

Input mapping

SDL-mapped game controllers are supported, including analog sticks and triggers. Keyboard and mouse controls can be configured with an anyps5-input.ini file. See input mapping for the supported devices and configuration format.

Disclaimer

This project is intended for interoperability, research, preservation, and compatibility purposes. It does not include, distribute, or require copyrighted software, firmware, cryptographic keys, or proprietary libraries. Users are responsible for ensuring that any binaries used with this project are obtained and used in accordance with applicable laws and their respective license terms.

License

This project is licensed under the GNU General Public License version 2 only.