Add -Av9 to AFLAGS_PIC and AFLAGS_PIE in the ld test suite on SPARC.
* testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIE on sparc. * testsuite/ld-elf/tls.exp: Add -Av9 to AFLAGS_PIC on sparc.
This commit is contained in:
parent
7def086592
commit
be7628ca50
3 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2020-09-16 Mikael Pettersson <mikpelinux@gmail.com>
|
||||
|
||||
* testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIE on sparc.
|
||||
* testsuite/ld-elf/tls.exp: Add -Av9 to AFLAGS_PIC on sparc.
|
||||
|
||||
2020-09-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR ld/26583
|
||||
|
|
|
@ -1610,6 +1610,9 @@ if { [istarget "i?86-*-*"]
|
|||
|| [istarget "x86_64-*-*"] } {
|
||||
set AFLAGS_PIE "-mrelax-relocations=yes"
|
||||
}
|
||||
if [istarget "sparc*-*-*"] {
|
||||
set AFLAGS_PIE "-Av9"
|
||||
}
|
||||
|
||||
if { ([istarget "*-*-linux*"]
|
||||
|| [istarget "*-*-nacl*"]
|
||||
|
|
|
@ -36,7 +36,7 @@ if { ![check_compiler_available] } {
|
|||
# This target requires extra GAS options when building PIC/PIE code.
|
||||
set AFLAGS_PIC ""
|
||||
if [istarget "sparc*-*-*"] {
|
||||
append AFLAGS_PIC " -K PIC"
|
||||
append AFLAGS_PIC " -K PIC -Av9"
|
||||
}
|
||||
|
||||
run_ld_link_tests [list \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue