diff options
author | Michael Neuling | 2017-08-30 12:45:12 +0200 |
---|---|---|
committer | Michael Ellerman | 2017-08-31 06:26:49 +0200 |
commit | a3c01050584da30405181505d20cd62cb42f3cdd (patch) | |
tree | 39b494365b75cb1fd713e498ab98172417ef39c7 /tools/testing/selftests/powerpc/ptrace | |
parent | powerpc: conditionally compile platform-specific serial drivers (diff) | |
download | kernel-qcow2-linux-a3c01050584da30405181505d20cd62cb42f3cdd.tar.gz kernel-qcow2-linux-a3c01050584da30405181505d20cd62cb42f3cdd.tar.xz kernel-qcow2-linux-a3c01050584da30405181505d20cd62cb42f3cdd.zip |
selftests/powerpc: Force ptrace tests to build -fno-pie
Currently these tests won't build with a `--enable-default-pie`
compiler as they require r30 to be clobbered. This gives
an error:
ptrace-tm-spd-gpr.c:41:2: error: PIC register clobbered by 'r30' in 'asm'
This forces these tests to be built no-pie.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/ptrace')
-rw-r--r-- | tools/testing/selftests/powerpc/ptrace/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/powerpc/ptrace/Makefile b/tools/testing/selftests/powerpc/ptrace/Makefile index fe6bc60dfc60..8932263e5a74 100644 --- a/tools/testing/selftests/powerpc/ptrace/Makefile +++ b/tools/testing/selftests/powerpc/ptrace/Makefile @@ -6,7 +6,7 @@ include ../../lib.mk all: $(TEST_PROGS) -CFLAGS += -m64 -I../../../../../usr/include -I../tm -mhtm +CFLAGS += -m64 -I../../../../../usr/include -I../tm -mhtm -fno-pie $(TEST_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h |