fix(build): link the Linux library tests as PIE #2798
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2798"
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 ThatsLeo on 2026-10-10T15:30:15Z.
What
On Linux the loader treats the unnamed main image as guest code:
FromGuestModulecomparesdladdr'sdli_fbasewith the main program'sdlpi_addr, andIsRelinkedImagetakes the unnamed image as relinked. Both hold for theET_DYNexecutables the relinker emits. Fedora's GCC does not default to PIE, so the library test executables wereET_EXECat0x400000:dlpi_addris 0 there, and the address of a libkernel function is a canonical PLT entry inside the test executable.core/libssetsCMAKE_POSITION_INDEPENDENT_CODEon Linux aftercheck_pie_supported, so its executables link as PIE whatever the compiler default.Tested
Fedora 44, GCC 16.2.1, Release.
guest_dynamic_loader,guest_unwind_module_infoandguest_unwind_module_info_failurefail onmainand pass.ctestonmain(5edae353) and on this branch, on Intel Arc (Meteor Lake, Mesa 26.2.3) and lavapipe: Intel Arc 9 failures onmain, 6 here; lavapipe 4 and 1; no new failure. The remaining failures also fail onmain: on Intel Arcagc_driver_mesh,agc_driver_f64_fma_subnormals,agc_driver_vop1_float_unary,agc_driver_vopc_compare,agc_pipeline_cache,agc_driver_lds_beyond_device_limit; on lavapipeagc_driver_f64_fma_subnormals.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T15:30:26Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Pull request closed