]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
selftests/powerpc: Force ptrace tests to build -fno-pie
authorMichael Neuling <mikey@neuling.org>
Wed, 30 Aug 2017 10:45:12 +0000 (20:45 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 31 Aug 2017 04:26:49 +0000 (14:26 +1000)
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>
tools/testing/selftests/powerpc/ptrace/Makefile

index fe6bc60dfc605dbdfc1a493b455fdbe1af0d3f25..8932263e5a749c60c00e8f47f8d83f155bb89f41 100644 (file)
@@ -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