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:
@@ -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)" \
|
||||
|
||||
Reference in New Issue
Block a user