Skip to content

feat(libkernel): export execv - #3544

Merged
adriadam10 merged 1 commit into
boykopovar:mainfrom
babyhuey:feat/libkernel-execv
Oct 11, 2026
Merged

adriadam10 merged 1 commit into
boykopovar:mainfrom
babyhuey:feat/libkernel-execv

Conversation

@babyhuey

@babyhuey babyhuey commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

What

Exports execv (KaK52lYTBIs) from libkernel next to execvp, and like it, it throws (NotImplemented, "execv: executable replacement"): replacing the process image is not supported. TechnicalDebt lists it next to execvp. There is no test, as for the other exports that only throw.

XPSemu (PPSA97358) imports it from the same module as execvp and stops at it on main a11c8f7 (catalog build, eboot.bin and sce_module/libc.prx unwrapped as #2605 requires; tracked in #1578):

  • Linux: app.elf: symbol lookup error: app.elf: undefined symbol: KaK52lYTBIs
  • Windows: FAIL: unresolved ELF import KaK52lYTBIs (execv) from libkernel.prx
  • with this PR, Linux: app.elf: symbol lookup error: app.elf: undefined symbol: mrbHXqK8wkg (sigwait)
  • with this PR, Windows: FAIL: unresolved ELF import mrbHXqK8wkg (sigwait) from libkernel.prx

Dusklight (PPSA99305, 0.1.1, new in the catalog) stops at it too:

  • Linux: app.elf: symbol lookup error: app.elf: undefined symbol: KaK52lYTBIs
  • Windows: FAIL: unresolved ELF import KaK52lYTBIs (execv) from libkernel.prx
  • with this PR, Linux: app.elf: symbol lookup error: app.elf: undefined symbol: owKuegZU4ew (logb, in feat(libc): implement the remaining long double math functions RetroArch imports #3598)
  • with this PR, Windows: FAIL: unresolved ELF import owKuegZU4ew (logb) from libSceLibcInternal.prx

Tested

Linux (Ubuntu 24.04, GCC 13) and Windows 11 (MinGW-w64 GCC 15.2 from WinLibs), Release: libkernel builds with no warnings in Process.cpp, and the XPSemu and Dusklight lines above. check_conventions.py passes.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

@github-actions

Copy link
Copy Markdown

Progress report (a11c8f7 → 0e9a8dd)

📉 System libraries: 85.79% (-0.02%, +1 declared functions)

🆕 1 declared as stubs
Library Name
libkernel execv_nid_postfix

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#3765 docs/dev/TechnicalDebt.md L416
#3779 docs/dev/TechnicalDebt.md L416

@adriadam10

Copy link
Copy Markdown
Collaborator

Checked: execv (KaK52lYTBIs) matches the NID name, mirrors execvp (throws NotImplemented), TechnicalDebt line is in place; libkernel build and ctest (93 tests) pass on Linux. Merging.

@adriadam10
adriadam10 merged commit 62f8758 into boykopovar:main Oct 11, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants