summaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2024-05-08 20:31:46 +0300
committerKees Cook <kees@kernel.org>2024-06-19 22:44:39 +0300
commitb57a2907c9d96c56494ef25f8ec821cd0b355dd6 (patch)
treede6171704cae0f0cb68a7bf74e5e3dd59094016e /scripts/rustdoc_test_builder.rs
parentc3f38fa61af77b49866b006939479069cd451173 (diff)
downloadlinux-b57a2907c9d96c56494ef25f8ec821cd0b355dd6.tar.xz
selftests/exec: Build both static and non-static load_address tests
After commit 4d1cd3b2c5c1 ("tools/testing/selftests/exec: fix link error"), the load address alignment tests tried to build statically. This was silently ignored in some cases. However, after attempting to further fix the build by switching to "-static-pie", the test started failing. This appears to be due to non-PT_INTERP ET_DYN execs ("static PIE") not doing alignment correctly, which remains unfixed[1]. See commit aeb7923733d1 ("revert "fs/binfmt_elf: use PT_LOAD p_align values for static PIE"") for more details. Provide rules to build both static and non-static PIE binaries, improve debug reporting, and perform several test steps instead of a single all-or-nothing test. However, do not actually enable static-pie tests; alignment specification is only supported for ET_DYN with PT_INTERP ("regular PIE"). Link: https://bugzilla.kernel.org/show_bug.cgi?id=215275 [1] Link: https://lore.kernel.org/r/20240508173149.677910-1-keescook@chromium.org Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions