Repository navigation
fix(linux): resolve loader and APR failures exposed by HFW - #1616
Closed
tototomate123 wants to merge 9 commits into
Closed
tototomate123 wants to merge 9 commits into
tototomate123 wants to merge 9 commits into
Conversation
9 tasks done
9 tasks done
This was referenced Oct 8, 2026
tototomate123
force-pushed
the
fix/hfw-linux-loader-apr
branch
from
October 8, 2026 15:51
38e2027 to
106e057
Compare
This was referenced Oct 8, 2026
This was referenced Oct 8, 2026
9 tasks done
This was referenced Oct 8, 2026
9 tasks done
9 tasks done
adriadam10
requested changes
Oct 9, 2026
adriadam10
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for the bring-up work. This needs splitting before it can land. CONTRIBUTING asks for one topic per PR, and this one carries six independent changes:
- relinker: section addresses,
DT_HASH/DT_DEBUG, executable exports (+test_linux_executable_exports.py) - loader:
sceKernelDlsymon the main module - libkernel: chmod errors,
sceKernelFutimes - libSceHttp:
sceHttpSetRequestStatusCallback - APR/Ampr: errno, failed-resolution cleanup, object layout, compact gather record
- shader:
SMin32in the SRT evaluator
Please open one PR per topic (the commits are already separated), each with its own What/Tested, and list the HFW integration dependencies under Depends on. Also, per PR:
conventionsfails:core/libs/tests/GuestDynamicLoader.cpp:22uses__declspec; use an existing export mechanism or a plainextern "C"definition.- Conflicts with
mainincore/libs/tests/GuestHttp.cppanddocs/dev/TechnicalDebt.md; rebase. Put the TechnicalDebt line away from the end of the section and from other PRs' lines. - APR: the 0x18 object layout and the 12-byte compact record (
Apr::Opcode::CompactReadFileGather = 29, 40-bit offset) are justified only by HFW behaviour. Say where each field order comes from (reference or call-site evidence), and keep the comment that the command encoding is ours. - HTTP:
0x80431100for an invalid id has no cited source; record it under "Unknown function info" or cite one.
9 tasks done
This was referenced Oct 10, 2026
Contributor
Author
|
@adriadam10 Thanks for the review, Ive split this into #2785-#2790, rebased on current main, and addressed the export, APR evidence/encoding and HTTP documentation feedback. The intake bot automatically closed all six replacements; could you reopen them for review? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Superseded by six topic PRs: relinker #2785, loader #2786, filesystem #2787, http #2788, apr #2789, shader #2790.
What
Fix Linux loader and APR failures found while bringing up Horizon Forbidden West (PPSA01521), with each fix in a separate commit:
sceKernelDlsym.sceKernelFutimeswhile preserving POSIX futimes behavior.The integration build reaches menu/loading UI using these fixes plus local equivalents of #1269 (media), #1339 (VRR), #1586 (unwind) and experimental image-table changes. Missing imports are already merged in #1436. The open #757 => #758 => #920 image-table series overlaps those experiments and should be tested as well; its code is excluded here. Loading still stops at a bounded material-scan limit; gameplay is not reached.
Tested
Linux x86-64, GCC 16.2.1, Release: native libraries and relinker build; all six targeted checks pass (ELF exports, dynamic loader, filesystem, HTTP, APR and shader memory, including signed-min boundary cases). Conventions and whitespace checks pass. The integration ELF was rebuilt on the new main; this smaller branch alone has not been game-tested.
Checklist
29e533ac); matching open-PR implementations excluded