* [PATCH] selftests/powerpc: Force ptrace tests to build -fno-pie
@ 2017-08-30 10:45 Michael Neuling
2017-08-31 11:36 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Michael Neuling @ 2017-08-30 10:45 UTC (permalink / raw)
To: mpe; +Cc: linuxppc-dev, mikey, Anshuman Khandual
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>
---
tools/testing/selftests/powerpc/ptrace/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/powerpc/ptrace/Makefile b/tools/testing/selftests/powerpc/ptrace/Makefile
index fe6bc60dfc..8932263e5a 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
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: selftests/powerpc: Force ptrace tests to build -fno-pie
2017-08-30 10:45 [PATCH] selftests/powerpc: Force ptrace tests to build -fno-pie Michael Neuling
@ 2017-08-31 11:36 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2017-08-31 11:36 UTC (permalink / raw)
To: Michael Neuling; +Cc: mikey, linuxppc-dev, Anshuman Khandual
On Wed, 2017-08-30 at 10:45:12 UTC, Michael Neuling wrote:
> 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>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/a3c01050584da30405181505d20cd6
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-31 11:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-30 10:45 [PATCH] selftests/powerpc: Force ptrace tests to build -fno-pie Michael Neuling
2017-08-31 11:36 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).