aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMikael Pettersson <mikpelinux@gmail.com>2020-09-16 16:20:51 +0100
committerNick Clifton <nickc@redhat.com>2020-09-16 16:20:51 +0100
commitbe7628ca507fe36b49c5a82b39db68b98c2ba1b4 (patch)
treee61d8ee2435d8a8bfc47d6f57a1fa6fe14755029 /ld
parent7def0865921f4256c8ae0fe1aad61d2e8ae64ca9 (diff)
downloadgdb-be7628ca507fe36b49c5a82b39db68b98c2ba1b4.zip
gdb-be7628ca507fe36b49c5a82b39db68b98c2ba1b4.tar.gz
gdb-be7628ca507fe36b49c5a82b39db68b98c2ba1b4.tar.bz2
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.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/testsuite/ld-elf/shared.exp3
-rw-r--r--ld/testsuite/ld-elf/tls.exp2
3 files changed, 9 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 81ad2a5..cffb271 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/testsuite/ld-elf/shared.exp b/ld/testsuite/ld-elf/shared.exp
index bc68bb8..7b1f898 100644
--- a/ld/testsuite/ld-elf/shared.exp
+++ b/ld/testsuite/ld-elf/shared.exp
@@ -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*"]
diff --git a/ld/testsuite/ld-elf/tls.exp b/ld/testsuite/ld-elf/tls.exp
index 45d2a84..c876f65 100644
--- a/ld/testsuite/ld-elf/tls.exp
+++ b/ld/testsuite/ld-elf/tls.exp
@@ -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 \