Skip to content

Commit

Permalink
selftests/powerpc: Force ptrace tests to build -fno-pie
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Neuling authored and Michael Ellerman committed Aug 31, 2017
1 parent 866bfc7 commit a3c0105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/testing/selftests/powerpc/ptrace/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a3c0105

Please sign in to comment.