fix(build): link Linux library tests as PIE #2818
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2818"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T16:04:55Z.
What
Fixes #2803. Fedora GCC can produce
ET_EXECbinaries when the compiler does not default to PIE, but the Linux guest loader expects the test executable to be anET_DYNmain image. Check PIE support and enable position-independent code for Linux targets configured undercore/libs.Tested
Linux x86_64, Debian GCC 12.2, Release, configured with
CMAKE_EXE_LINKER_FLAGS=-no-pieto reproduce a non-PIE default.guest_dynamic_loader_tests,guest_unwind_module_info_tests, andguest_unwind_module_info_failure_tests.readelfconfirmed each executable isDYN(position-independent executable).tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.Checklist
main; no open PR implements the same change