OrangePi_CM5/tools/testing/selftests/x86
Shuah Khan 3346a6a4e5 selftests: x86: sysret_ss_attrs doesn't build on a PIE build
sysret_ss_attrs fails to compile leading x86 test run to fail on systems
configured to build using PIE by default. Add -no-pie fix it.

Relocation might still fail if relocated above 4G. For now this change
fixes the build and runs x86 tests.

tools/testing/selftests/x86$ make
gcc -m64 -o .../tools/testing/selftests/x86/single_step_syscall_64 -O2
-g -std=gnu99 -pthread -Wall  single_step_syscall.c -lrt -ldl
gcc -m64 -o .../tools/testing/selftests/x86/sysret_ss_attrs_64 -O2 -g
-std=gnu99 -pthread -Wall  sysret_ss_attrs.c thunks.S -lrt -ldl
/usr/bin/ld: /tmp/ccS6pvIh.o: relocation R_X86_64_32S against `.text'
can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:49: recipe for target
'.../tools/testing/selftests/x86/sysret_ss_attrs_64' failed
make: *** [.../tools/testing/selftests/x86/sysret_ss_attrs_64] Error 1

Suggested-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
2017-10-05 11:34:14 -06:00
..
.gitignore selftests: x86: add missing executables to .gitignore 2017-05-03 10:55:20 -06:00
Makefile selftests: x86: sysret_ss_attrs doesn't build on a PIE build 2017-10-05 11:34:14 -06:00
check_cc.sh
…
check_initial_reg_state.c
…
entry_from_vm86.c
…
fsgsbase.c selftests/x86/fsgsbase: Test selectors 1, 2, and 3 2017-08-10 17:15:13 +02:00
ioperm.c selftests/x86: Add a basic selftest for ioperm 2017-03-01 17:03:23 +01:00
iopl.c
…
ldt_gdt.c selftests/x86/ldt_gdt_32: Work around a glibc sigaction() bug 2017-03-23 08:25:07 +01:00
mpx-debug.h
…
mpx-dig.c
…
mpx-hw.h
…
mpx-mini-test.c signal/testing: Don't look for __SI_FAULT in userspace 2017-07-19 19:13:15 -05:00
mpx-mm.h
…
pkey-helpers.h x86/pkeys: Add self-tests 2016-09-09 13:02:28 +02:00
protection_keys.c signal/testing: Don't look for __SI_FAULT in userspace 2017-07-19 19:13:15 -05:00
ptrace_syscall.c x86/selftests: Add clobbers for int80 on x86_64 2017-03-01 10:24:56 +01:00
raw_syscall_helper_32.S
…
sigreturn.c selftests/x86/sigreturn: Use CX, not AX, as the scratch register 2016-09-13 20:34:15 +02:00
single_step_syscall.c x86/selftests: Add clobbers for int80 on x86_64 2017-03-01 10:24:56 +01:00
syscall_arg_fault.c
…
syscall_nt.c
…
sysret_rip.c selftests/x86: Add a selftest for SYSRET to noncanonical addresses 2017-01-05 09:20:02 +01:00
sysret_ss_attrs.c
…
test_FCMOV.c
…
test_FCOMI.c
…
test_FISTTP.c
…
test_mremap_vdso.c
…
test_syscall_vdso.c
…
test_vdso.c selftests/x86: Add test_vdso to test getcpu() 2016-11-17 08:31:22 +01:00
thunks.S
…
thunks_32.S
…
trivial_32bit_program.c
…
trivial_64bit_program.c
…
unwind_vdso.c
…
vdso_restorer.c
…