Skip to contentSkip to conversation

selftests/powerpc: Force ptrace tests to build -fno-pie

PATCH Applied Michael Neuling 2 participants 2 messages Aug 30, 2017 – Aug 31, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 tools/testing/selftests/powerpc/ptrace/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/powerpc/ptrace/Makefile +1 -1
index fe6bc60dfc..8932263e5a 100644
@@ -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
 
Signature · 1 line
2.11.0