This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Fix elf version failures on sparc
- From: David Miller <davem at davemloft dot net>
- To: binutils at sourceware dot org
- Date: Thu, 25 Mar 2010 20:47:24 -0700 (PDT)
- Subject: [PATCH] Fix elf version failures on sparc
GCC on debian/sparc now emits v8plus code by default, so to assemble
any code generated by gcc the -Av9a option needs to be passed to the
assembler else it won't accept the v9 and later instructions emitted
by the compiler.
The other option is to parse GCC's output to pick out the assembler
options generated by that backends spec.
Ok to commit?
ld/testsuite
2010-03-25 David S. Miller <davem@davemloft.net>
* ld-elfvers/vers.exp: Pass -Av9a to assembler on sparc-*-*
diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp
index 828c32f..15eafb8 100644
--- a/ld/testsuite/ld-elfvers/vers.exp
+++ b/ld/testsuite/ld-elfvers/vers.exp
@@ -97,6 +97,7 @@ if [istarget mips*-*-*] {
case $target_triplet in {
{ ia64-*-* } { set as_options "-x" }
+ { sparc-*-* } { set as_options "-Av9a" }
default { set as_options "" }
}