diff options
author | Benjamin Gray <bgray@linux.ibm.com> | 2024-04-17 21:23:17 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2024-05-03 20:46:51 +1000 |
commit | d7228a58d9438d6f219dc7f33eab0d1980b3bd2f (patch) | |
tree | b739650cbc774b6865b70fbdf00628b0a28a53b2 /tools | |
parent | 4071739249fd2e647e7058dbab0db4ddc0a0c427 (diff) | |
download | linux-stable-d7228a58d9438d6f219dc7f33eab0d1980b3bd2f.tar.gz linux-stable-d7228a58d9438d6f219dc7f33eab0d1980b3bd2f.tar.bz2 linux-stable-d7228a58d9438d6f219dc7f33eab0d1980b3bd2f.zip |
selftests/powerpc/dexcr: Add -no-pie to hashchk tests
The hashchk tests want to verify that the hash key is changed over exec.
It does so by calculating hashes at the same address across an exec.
This is made simpler by disabling PIE functionality, so we can
re-execute ourselves and be using the same addresses in the child.
While -fno-pie is already added, -no-pie is also required.
Fixes: bdb07f35a52f ("selftests/powerpc/dexcr: Add hashst/hashchk test")
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240417112325.728010-2-bgray@linux.ibm.com
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/powerpc/dexcr/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/powerpc/dexcr/Makefile b/tools/testing/selftests/powerpc/dexcr/Makefile index 523947a38d17..1b775959f981 100644 --- a/tools/testing/selftests/powerpc/dexcr/Makefile +++ b/tools/testing/selftests/powerpc/dexcr/Makefile @@ -4,7 +4,7 @@ TEST_GEN_FILES := lsdexcr include ../../lib.mk include ../flags.mk -$(OUTPUT)/hashchk_test: CFLAGS += -fno-pie $(call cc-option,-mno-rop-protect) +$(OUTPUT)/hashchk_test: CFLAGS += -fno-pie -no-pie $(call cc-option,-mno-rop-protect) $(TEST_GEN_PROGS): ../harness.c ../utils.c ./dexcr.c $(TEST_GEN_FILES): ../utils.c ./dexcr.c |