]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests/x86: Detect -no-pie availability
authorFlorian Weimer <fweimer@redhat.com>
Wed, 2 May 2018 12:10:32 +0000 (14:10 +0200)
committerShuah Khan (Samsung OSG) <shuah@kernel.org>
Wed, 30 May 2018 21:21:51 +0000 (15:21 -0600)
commit0dd3a6945f5dd4864db809ff015a493d80c65898
treeeaf6acaf25a2a6de1527e92ceff5841306d3f38d
parent0852991470e2d8f4bbc5233f0d3a9f36501c9e0f
selftests/x86: Detect -no-pie availability

Some toolchains need -no-pie to build all tests, others do not support
the -no-pie flag at all.  Therefore, add another test for the
availability of the flag.

This amends commit 3346a6a4e5ba8c040360f753b26938cec31a4bdc
("selftests: x86: sysret_ss_attrs doesn't build on a PIE build").

Signed-off-by: Florian Weimer <fweimer@redhat.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Shuah Khan (Samsung OSG) <shuah@kernel.org>
tools/testing/selftests/x86/Makefile
tools/testing/selftests/x86/trivial_program.c [new file with mode: 0644]