diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-08-24 22:26:59 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-08-24 22:26:59 +0000 |
commit | fc9b2d3f3e8fa91d6d1b450a57b35c9f8392b53e (patch) | |
tree | 61afc8a76d854a6c2ce2253934131361029e7a2b /ld | |
parent | 0776254a06442eef88af248cdcdb73c537f03767 (diff) | |
download | binutils-redhat-fc9b2d3f3e8fa91d6d1b450a57b35c9f8392b53e.tar.gz |
* ld-arm/export-class.exp: Handle non-EABI targets.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-arm/export-class.exp | 12 |
2 files changed, 13 insertions, 3 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 7e3b35a35f..f6858edf13 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2013-08-24 Maciej W. Rozycki <macro@linux-mips.org> + + * ld-arm/export-class.exp: Handle non-EABI targets. + 2013-08-23 Roland McGrath <mcgrathr@google.com> * ld-x86-64/ilp32-4-nacl.d: Update for 2013-05-31 gas alignment change. diff --git a/ld/testsuite/ld-arm/export-class.exp b/ld/testsuite/ld-arm/export-class.exp index 1eeb9c387f..4e33389f4c 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 } \ { \ |