diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-08-11 12:34:20 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-08-11 12:34:20 -0700 |
commit | d02a8683722f1ab1afec0e0850df5dc465abc2a1 (patch) | |
tree | a35ce053b76a38ac1cd3961bb121ed18f30434af | |
parent | cbb91fe38224d943b8156b1edc0073d0ac5ea0ef (diff) | |
download | gdb-d02a8683722f1ab1afec0e0850df5dc465abc2a1.zip gdb-d02a8683722f1ab1afec0e0850df5dc465abc2a1.tar.gz gdb-d02a8683722f1ab1afec0e0850df5dc465abc2a1.tar.bz2 |
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>
-rw-r--r-- | ld/testsuite/ld-i386/export-class.exp | 15 |
1 files changed, 9 insertions, 6 deletions
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 @@ if { ![is_elf_format] } { # 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 @@ set testname "i386 symbol export class test" 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 \ 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 \ 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 } \ |