tests.hardeningFlags: only inspect .text section in instructionPresenceTest

other sections may include code that doesn't originate from
the compiler under test or may not obey flags in the same
way.

this should fix our pacret-detecting tests.
This commit is contained in:
Robert Scott
2026-02-19 19:29:41 +00:00
parent ac0ecacb84
commit 34a81df019
+1
View File
@@ -272,6 +272,7 @@ let
''
touch $out
if $OBJDUMP -d \
-j .text \
--no-addresses \
--no-show-raw-insn \
"$(PATH=$HOST_PATH type -P test-bin)" \