i386: Add Linux/x86-64 support to export-class.exp

Add Linux/x86-64 support to export-class.exp by passing --32 to assembler
and passing  -melf_i386 to linker.

	* testsuite/ld-i386/export-class.exp: Run for Linux/x86-64.
	Pass --32 to assembler.  Pass -melf_i386 to linker.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
diff --git a/ld/testsuite/ld-i386/export-class.exp b/ld/testsuite/ld-i386/export-class.exp
index a06a091..919925e 100644
--- a/ld/testsuite/ld-i386/export-class.exp
+++ b/ld/testsuite/ld-i386/export-class.exp
@@ -31,8 +31,9 @@
 
 # Exclude some more targets; feel free to include your favorite one
 # if you like.
-if { !([istarget i?86-*-linux*]
-       || [istarget i?86-*-gnu*]) } {
+if { !([istarget "i?86-*-linux*"]
+       || [istarget "i?86-*-gnu*"]
+       || [istarget "x86_64-*-linux*"]) } {
     return
 }
 
@@ -43,8 +44,9 @@
 run_ld_link_tests [list \
     [list \
 	"$testname (auxiliary shared object)" \
-	"-shared -version-script ../ld-elf/export-class-lib.ver" "" \
+	"-melf_i386 -shared -version-script ../ld-elf/export-class-lib.ver" \
 	"" \
+	"--32" \
 	{ ../ld-elf/export-class-lib.s } \
 	{} \
 	"i386-export-class-lib.so" \
@@ -57,8 +59,8 @@
 run_ld_link_tests [list \
     [list \
 	"$testname (initial static object)" \
-	"-r" "" \
-	"" \
+	"-r -melf_i386" "" \
+	"--32" \
 	{ ../ld-elf/export-class-ref.s } \
 	{} \
 	"i386-export-class-ref-r.o" \
@@ -74,8 +76,9 @@
 run_ld_link_tests [list \
     [list \
 	"$testname (final shared object)" \
-	"-shared $NO_DT_RELR_LDFLAGS -Tdata=0x12340000 tmpdir/i386-export-class-ref-r.o tmpdir/i386-export-class-lib.so" "" \
+	"-shared -melf_i386 $NO_DT_RELR_LDFLAGS -Tdata=0x12340000 tmpdir/i386-export-class-ref-r.o tmpdir/i386-export-class-lib.so" \
 	"" \
+	"--32" \
 	{ ../ld-elf/export-class-dep.s ../ld-elf/export-class-def.s } \
 	{ \
 	    { readelf -r i386-export-class.rd } \