aarch64: testsuite: disable PIE for aapcs64 tests [PR70150]
authorXi Ruoyao <xry111@xry111.site>
Sat, 24 Sep 2022 05:57:19 +0000 (13:57 +0800)
committerXi Ruoyao <xry111@xry111.site>
Tue, 7 Mar 2023 07:36:59 +0000 (15:36 +0800)
If GCC is built with --enable-default-pie, a lot of aapcs64 tests fail
because relocation unsupported in PIE is used.

gcc/testsuite/ChangeLog:

PR testsuite/70150
* gcc.target/aarch64/aapcs64/aapcs64.exp (additional_flags):
Add -fno-pie -no-pie.

gcc/testsuite/gcc.target/aarch64/aapcs64/aapcs64.exp

index fc6b3e8..8cf9cc1 100644 (file)
@@ -27,7 +27,7 @@ if { ![istarget aarch64*-*-*] } then {
 
 torture-init
 set-torture-options $C_TORTURE_OPTIONS
-set additional_flags "-W -Wall -Wno-abi"
+set additional_flags "-W -Wall -Wno-abi -fno-pie -no-pie"
 
 # Test parameter passing.  This uses abitest.S which relies on weak
 # symbols.