This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] ld-arm/export-class.exp: Fix traditional ABI failures
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: binutils at sourceware dot org
- Cc: Nick Clifton <nickc at redhat dot com>, Richard Earnshaw <rearnsha at arm dot com>, Paul Brook <paul at codesourcery dot com>
- Date: Sun, 28 Jul 2013 01:09:13 +0100 (BST)
- Subject: [PATCH] ld-arm/export-class.exp: Fix traditional ABI failures
Hi,
This change makes ld-arm/export-class.exp use the correct emulation for
traditional (non-EABI) ABI configurations, making the tests within the
script pass cleanly. OK to apply?
2013-07-28 Maciej W. Rozycki <macro@linux-mips.org>
ld/testsuite/
* ld-arm/export-class.exp: Handle non-EABI targets.
Maciej
binutils-2.23.52-20130506-ld-test-arm-export-class.patch
Index: binutils/ld/testsuite/ld-arm/export-class.exp
===================================================================
--- binutils.orig/ld/testsuite/ld-arm/export-class.exp
+++ binutils/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 } \
{ \