aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-arm
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2013-08-24 22:27:00 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2013-08-24 22:27:00 +0000
commitaea6ea421db3f7327c4943cbe13abceb42b84be6 (patch)
treea06cf4132648490f938992769462bb4ffd73db87 /ld/testsuite/ld-arm
parent387f8054ca819e73bd9d0c17d23dbe4e68c67947 (diff)
downloadgdb-aea6ea421db3f7327c4943cbe13abceb42b84be6.zip
gdb-aea6ea421db3f7327c4943cbe13abceb42b84be6.tar.gz
gdb-aea6ea421db3f7327c4943cbe13abceb42b84be6.tar.bz2
* ld-arm/export-class.exp: Handle non-EABI targets.
Diffstat (limited to 'ld/testsuite/ld-arm')
-rw-r--r--ld/testsuite/ld-arm/export-class.exp12
1 files changed, 9 insertions, 3 deletions
diff --git a/ld/testsuite/ld-arm/export-class.exp b/ld/testsuite/ld-arm/export-class.exp
index 1eeb9c3..4e33389 100644
--- a/ld/testsuite/ld-arm/export-class.exp
+++ b/ld/testsuite/ld-arm/export-class.exp
@@ -32,12 +32,18 @@ if { ![istarget arm*-*-linux*] } {
set testname "ARM symbol export class test"
+if [istarget arm*-*-linux*eabi] {
+ set emul armelf_linux_eabi
+} else {
+ set emul armelf_linux
+}
+
# Build an auxiliary shared object with conflicting versioned symbol
# definitions.
run_ld_link_tests [list \
[list \
"$testname (auxiliary shared object)" \
- "-marmelf_linux_eabi -shared -version-script ../ld-elf/export-class-lib.ver" "" \
+ "-m$emul -shared -version-script ../ld-elf/export-class-lib.ver" "" \
"-EL" \
{ ../ld-elf/export-class-lib.s } \
{} \
@@ -51,7 +57,7 @@ run_ld_link_tests [list \
run_ld_link_tests [list \
[list \
"$testname (initial static object)" \
- "-marmelf_linux_eabi -r" "" \
+ "-m$emul -r" "" \
"-EL" \
{ ../ld-elf/export-class-ref.s } \
{} \
@@ -68,7 +74,7 @@ run_ld_link_tests [list \
run_ld_link_tests [list \
[list \
"$testname (final shared object)" \
- "-marmelf_linux_eabi -shared -Tdata=0x12340000 tmpdir/arm-export-class-ref-r.o tmpdir/arm-export-class-lib.so" "" \
+ "-m$emul -shared -Tdata=0x12340000 tmpdir/arm-export-class-ref-r.o tmpdir/arm-export-class-lib.so" "" \
"-EL" \
{ ../ld-elf/export-class-dep.s ../ld-elf/export-class-def.s } \
{ \