forked from Imagelibrary/binutils-gdb
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:
committed by
Nick Clifton
parent
7def086592
commit
be7628ca50
@@ -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>
|
2020-09-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/26583
|
PR ld/26583
|
||||||
|
|||||||
@@ -1610,6 +1610,9 @@ if { [istarget "i?86-*-*"]
|
|||||||
|| [istarget "x86_64-*-*"] } {
|
|| [istarget "x86_64-*-*"] } {
|
||||||
set AFLAGS_PIE "-mrelax-relocations=yes"
|
set AFLAGS_PIE "-mrelax-relocations=yes"
|
||||||
}
|
}
|
||||||
|
if [istarget "sparc*-*-*"] {
|
||||||
|
set AFLAGS_PIE "-Av9"
|
||||||
|
}
|
||||||
|
|
||||||
if { ([istarget "*-*-linux*"]
|
if { ([istarget "*-*-linux*"]
|
||||||
|| [istarget "*-*-nacl*"]
|
|| [istarget "*-*-nacl*"]
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ if { ![check_compiler_available] } {
|
|||||||
# This target requires extra GAS options when building PIC/PIE code.
|
# This target requires extra GAS options when building PIC/PIE code.
|
||||||
set AFLAGS_PIC ""
|
set AFLAGS_PIC ""
|
||||||
if [istarget "sparc*-*-*"] {
|
if [istarget "sparc*-*-*"] {
|
||||||
append AFLAGS_PIC " -K PIC"
|
append AFLAGS_PIC " -K PIC -Av9"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_ld_link_tests [list \
|
run_ld_link_tests [list \
|
||||||
|
|||||||
Reference in New Issue
Block a user