Repository navigation
fix(build): link the fixed-base loader test with ld.bfd - #6870
Merged
Merged
Conversation
wild 0.10.0 gives no canonical PLT entry to a DSO function whose address a non-PIE executable takes (wild-linker/wild#2469, fixed after the release by boykopovar#2480), so the absolute personality pointer in .eh_frame names a local stub and every exception reaching main is unhandled. Co-Authored-By: Claude <noreply@anthropic.com>
fable-void
added a commit
to fable-void/AnyPS5
that referenced
this pull request
Oct 18, 2026
Merge upstream main at 4524944 (Merge pull request boykopovar#6870) into the new GPU path. Conflicts: 157 files with 158 entries: 136 content, 17 modify/delete, 4 add/add and 1 rename collision. The new path keeps its structure. The dispatch cache, draw cache, draw capture, write evidence and CPU shader-memory capture stay deleted, and the upstream mechanisms built on them are not taken: pipelined queue-0 work, dispatches resolved ahead, draw relocation, the pipeline journal, snapshot and capture reuse, sparse dma-buf imports and import settling. Upstream correctness and shader fixes are kept where they apply to the new path. Upstream tests dropped: 84 (18 whole files, 2 file versions and 64 functions or checks). Upstream rules listed for carrying to the new path: 27.
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.
What
guest_dynamic_loader_fixed_base_tests, the only non-PIE executable in the tree, now links with-fuse-ld=bfd. Since #6863 the linux job links with wild 0.10.0, and this test aborts on every run there (main run 38918416732:_sceKernelRtldThreadAtexitDecrement: image holds no thread atexit reference, an exception thatThrowsRuntimeErrorexpects to catch).Cause: in a non-PIE executable GCC encodes the personality routine in
.eh_frameas an absolute address (zPLR, encoding0x03). For that address to be the same one libc.prx sees, the linker must give__gxx_personality_v0a canonical PLT entry (a non-zerost_valueon the undefined.dynsymsymbol). wild 0.10.0 doesn't (wild-linker/wild#2469; fixed on wild's main by wild-linker/wild#2480 on 2026-09-02, not released yet). The personality pointer then names a local.plt.gotstub,LibcUnwind::CallPersonalityrecognises neither__gxx_personality_v0address, phase 1 fails and every exception is reported unhandled.The same executable relinked by hand from the build's link command:
__gxx_personality_v0in.dynsym.eh_frame0x4020a0(canonical PLT)0x4020a00x204cd00x204cd000x403b70(.plt.gotstub)Every other executable is PIE, where wild already creates the canonical entry (wild-linker/wild#2152); the full ctest with wild shows no other difference from ld.bfd.
-fuse-ld=bfdis placed after the-B<wild>flag in the link line, and GCC then takesld.bfdfromPATH. Once a wild release has #2480, the option can go.Tested
CachyOS, GCC 16.2.1, build configured like CI's linux job (
-Bdir withld -> wild): without the change 0/40 runs pass; with it the link line has-B.../wild-0.10.0/bin ... -fuse-ld=bfd,__gxx_personality_v0hasst_value 0x4020a0, 20/20 runs pass.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)