From 3aa58d4ba3159c09f4c3554bdb12e396deb18f32 Mon Sep 17 00:00:00 2001 From: Nioreh <14848611+lulebo@users.noreply.github.com> Date: Tue, 20 Oct 2026 21:43:05 +0200 Subject: [PATCH] test(relinker): run guest_unused_import_dependencies with the ASan host-loading option guest_unused_import_dependencies, added in #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 (#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 --- core/relinker/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/relinker/CMakeLists.txt b/core/relinker/CMakeLists.txt index daca3d5f770d..0e9fc4fe0e6b 100644 --- a/core/relinker/CMakeLists.txt +++ b/core/relinker/CMakeLists.txt @@ -598,6 +598,7 @@ if(BUILD_TESTING) ${CMAKE_CURRENT_SOURCE_DIR}/relinker/tests/test_guest_unused_import_dependencies.py $ $) set_property(TEST guest_unused_import_dependencies APPEND PROPERTY LABELS relinker) + add_asan_test_options(guest_unused_import_dependencies verify_asan_link_order=0) add_test(NAME guest_export_lookup COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/relinker/tests/test_guest_export_lookup.py $) set_tests_properties(guest_export_lookup PROPERTIES TIMEOUT 30)