Repository navigation
test(relinker): run guest_unused_import_dependencies with the ASan host-loading option - #8664
Merged
oneandonlydean merged 1 commit intoOct 24, 2026
Conversation
…st-loading option guest_unused_import_dependencies, added in boykopovar#6903, runs its relinked Linux programs against copies of the instrumented guest_module_args_host.prx in libs/, as guest_module_args, guest_deferred_dependencies, guest_module_fini and guest_zero_initializer do. Those four run with verify_asan_link_order=0 through add_asan_test_options (boykopovar#7147); this one did not, so in an ANYPS5_ENABLE_ASAN build the program of its referenced case exited with 1 and "ASan runtime does not come first in initial library list" instead of 42. It now runs with the same option, which changes nothing outside ASan builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
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_unused_import_dependencies(#6903) runs its relinked Linux programs against copies of the instrumentedguest_module_args_host.prxinlibs/, asguest_module_args,guest_deferred_dependencies,guest_module_finiandguest_zero_initializerdo. Those four run withverify_asan_link_order=0throughadd_asan_test_options(#7147). This test was registered after that without the option, so in anANYPS5_ENABLE_ASANbuild the program of itsreferencedcase exits with 1 instead of 42:It now gets the same option, next to its registration as
guest_zero_initializer's is.add_asan_test_optionsdoes nothing outside ASan builds, so other builds run the test unchanged. Therelinker-asanCI job runs only thetls_function_coveragelabel, so it does not reach this test.Tested
WSL 2 Ubuntu 26.04 x86-64, GCC 15.2.0, CMake 4.2.3, Ninja 1.13.2, Python 3.14.4. Relinker-only builds of
main(aa1b1bf) and of this branch:relinker-asanjob (-DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=g++ -DANYPS5_RELINKER_ONLY=ON -DANYPS5_ENABLE_ASAN=ON -DBUILD_TESTING=ON), fullctest --timeout 120: onmain234 of 235 pass andguest_unused_import_dependenciesfails as above; with this change 235 of 235 pass. The job's--label-regex '^tls_function_coverage$'selection passes 32 of 32.-fsanitize=undefined -fno-sanitize-recover=undefinedadded: 235 of 235 pass, with no ASan or UBSan report.tools/check_conventions.py --base origin/mainpasses.tools/pr_overlap.py --branchreports no overlap; it could not compare feat(aot): consolidate native ARM64 compiler, runtime and consumers #5021, test: organize library tests and label CTest suites #6044, fix(relinker): skip jump tables placed after a function's code #6618, feat(wasm): run relinked titles in the browser with WebGPU #6879, feat: run PS4 games on the AGC driver — Limbo (CUSA01664) in game (integration branch) #6977 and fix(linux): enter the guest entry on a main stack at the console's address #7532, which conflict withmainand also editcore/relinker/CMakeLists.txt. None of their diffs changes the lines touched here: their hunks add or move other tests' registrations, and fix(linux): enter the guest entry on a main stack at the console's address #7532 gives its newlinux_main_stack_entrythe same option.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)🤖 Generated with Claude Code