linux/tools/testing/selftests/powerpc
Naveen N. Rao 1936f094e1 selftests/powerpc: Fix compilation issue due to asm label
We are using 'dscr_insn' as a label in inline asm to identify if a
SIGILL was generated by the mtspr instruction at that point. However,
with inline assembly, the compiler is still free to duplicate the asm
statement for optimization purposes, which results in the label being
defined twice with the error:
	/tmp/ccerQCql.s:874: Error: symbol `dscr_insn' is already defined

With different compiler versions, we may also see:
	/tmp/ccJzLDlN.o:(.toc+0x0): undefined reference to `dscr_insn'

Remove the use of the label in the inline assembly. Instead, just look
for the offending instruction in the signal handler.

Fixes: d2bf793237 ("selftests/powerpc: Add test to verify rfi flush across a system call")
Reported-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Tested-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-11-01 10:06:03 +11:00
..
alignment selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
benchmarks selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
cache_shape selftests/powerpc/cache_shape: Fix out-of-tree build 2018-10-31 23:56:22 +11:00
copyloops selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
dscr selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
include selftests/powerpc: Add a test of wild bctr 2018-10-20 13:26:47 +11:00
lib selftests/powerpc: Add ptrace tests for VSX, VMX registers 2016-11-17 17:11:51 +11:00
math selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
mm selftests/powerpc: Add a test of wild bctr 2018-10-20 13:26:47 +11:00
pmu selftests/powerpc/pmu: Link ebb tests with -no-pie 2018-10-31 23:56:21 +11:00
primitives selftests/powerpc: Move UCONTEXT_NIA() into utils.h 2018-10-20 13:26:47 +11:00
ptrace selftests/powerpc/ptrace: Fix out-of-tree build 2018-10-31 23:56:19 +11:00
scripts selftests/powerpc: Add script to test HMI functionality 2015-12-17 10:46:43 +11:00
security selftests: powerpc: Fix warning for security subdir 2018-10-31 14:36:33 +11:00
signal selftests/powerpc/signal: Fix out-of-tree build 2018-10-31 23:56:20 +11:00
stringloops selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
switch_endian selftests/powerpc/switch_endian: Fix out-of-tree build 2018-10-31 23:56:21 +11:00
syscalls selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
tm Merge branch 'fixes' into next 2018-10-09 16:51:05 +11:00
vphn selftests/powerpc: Fix Makefiles for headers_install change 2018-09-28 15:07:45 +10:00
Makefile selftests/powerpc: Add test to verify rfi flush across a system call 2018-10-20 13:26:47 +11:00
harness.c selftests/powerpc: Kill child processes on SIGINT 2018-08-08 18:52:24 +10:00
utils.c selftests/powerpc: Fix compilation issue due to asm label 2018-11-01 10:06:03 +11:00