From ad995491f834d95f3671f8fb96938be3f633f7de Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 15 Feb 2001 01:17:07 +0000 Subject: [PATCH] 2001-02-14 H.J. Lu * ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3 for -static on ia64. * ld-checks/checks.exp: Don't run on ia64-*-elf* nor ia64-*-linux*. * ld-elfvers/vers.exp: Also run ia64-*-elf* and ia64-*-linux*. * ld-elfvsb/elfvsb.exp: Use i?86-*-*. Also run on ia64-*-linux*. Set up expected failures for ia64-*-linux*. * ld-shared/shared.exp: Likewise. --- ld/testsuite/ChangeLog | 14 ++++++++++++++ ld/testsuite/ld-bootstrap/bootstrap.exp | 13 +++++++++++++ ld/testsuite/ld-checks/checks.exp | 5 +++++ ld/testsuite/ld-elfvers/vers.exp | 2 ++ ld/testsuite/ld-elfvsb/elfvsb.exp | 20 +++++++++++++++----- ld/testsuite/ld-shared/shared.exp | 21 +++++++++------------ 6 files changed, 58 insertions(+), 17 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 6419180e161..59ce30ed23f 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,17 @@ +2001-02-14 H.J. Lu + + * ld-bootstrap/bootstrap.exp: Rebuild tmpdir/ld2 with tmpdir/ld3 + for -static on ia64. + + * ld-checks/checks.exp: Don't run on ia64-*-elf* nor + ia64-*-linux*. + + * ld-elfvers/vers.exp: Also run ia64-*-elf* and ia64-*-linux*. + + * ld-elfvsb/elfvsb.exp: Use i?86-*-*. Also run on ia64-*-linux*. + Set up expected failures for ia64-*-linux*. + * ld-shared/shared.exp: Likewise. + 2001-02-08 Stephane Carrez * ld-srec/srec.exp (run_srec_test): m6811 code has references diff --git a/ld/testsuite/ld-bootstrap/bootstrap.exp b/ld/testsuite/ld-bootstrap/bootstrap.exp index a3f8a190230..c9891671491 100644 --- a/ld/testsuite/ld-bootstrap/bootstrap.exp +++ b/ld/testsuite/ld-bootstrap/bootstrap.exp @@ -102,6 +102,19 @@ foreach flags {"" "strip" "--static" "--traditional-format" "--no-keep-memory"} continue } + if {"$flags" == "--static"} { + if { [istarget ia64-*-elf*] + || [istarget ia64-*-linux*] } { + # On ia64, tmpdir/ld2 != tmpdir/ld3 is normal since they are + # generated by different linkers, tmpdir/ld1 and tmpdir/ld2. + # So we rebuild tmpdir/ld2 with tmpdir/ld3. + if ![ld_link tmpdir/ld3 tmpdir/ld2 "$flags $OFILES $BFDLIB $LIBIBERTY"] { + fail $testname + continue + } + } + } + send_log "cmp tmpdir/ld2 tmpdir/ld3\n" verbose "cmp tmpdir/ld2 tmpdir/ld3" catch "exec cmp tmpdir/ld2 tmpdir/ld3" exec_output diff --git a/ld/testsuite/ld-checks/checks.exp b/ld/testsuite/ld-checks/checks.exp index 16fafe34095..6e9f0382001 100644 --- a/ld/testsuite/ld-checks/checks.exp +++ b/ld/testsuite/ld-checks/checks.exp @@ -24,6 +24,11 @@ proc section_check {} { global srcdir global subdir + # The usage of .lcomm in asm.s is incompatible with ia64. + if { [istarget ia64-*-elf*] + || [istarget ia64-*-linux*] } { + return + } set test "check sections 1" set ldflags "--check-sections" diff --git a/ld/testsuite/ld-elfvers/vers.exp b/ld/testsuite/ld-elfvers/vers.exp index 7bdcbd0a61b..060533bae43 100644 --- a/ld/testsuite/ld-elfvers/vers.exp +++ b/ld/testsuite/ld-elfvers/vers.exp @@ -29,6 +29,8 @@ if { ![istarget i?86-*-sysv4*] \ && ![istarget i?86-*-unixware] \ && ![istarget i?86-*-elf*] \ && ![istarget i?86-*-linux*] \ + && ![istarget ia64-*-elf*] \ + && ![istarget ia64-*-linux*] \ && ![istarget m68k-*-linux*] \ && ![istarget mips*-*-irix5*] \ && ![istarget powerpc-*-elf*] \ diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp index 22f64352f8a..7133cbcba26 100644 --- a/ld/testsuite/ld-elfvsb/elfvsb.exp +++ b/ld/testsuite/ld-elfvsb/elfvsb.exp @@ -26,10 +26,8 @@ if ![isnative] then {return} # This test can only be run on a couple of ELF platforms. # Square bracket expressions seem to confuse istarget. -if { ![istarget i386-*-linux*] \ - && ![istarget i486-*-linux*] \ - && ![istarget i586-*-linux*] \ - && ![istarget i686-*-linux*] \ +if { ![istarget i?86-*-linux*] \ + && ![istarget ia64-*-linux*] \ && ![istarget m68k-*-linux*] \ && ![istarget powerpc-*-linux*] \ && ![istarget arm*-*-linux*] \ @@ -222,7 +220,7 @@ proc visibility_run {visibility} { || ![ld_compile "$CC -g $CFLAGS $SHCFLAG $VSBCFLAG" $srcdir/$subdir/sh2.c $tmpdir/sh2np.o] } { unresolved "visibility ($visibility) (non PIC)" } else { if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } { - visibility_test $visibility vnp "visibility ($visibility) (nonPIC)" mainnp.o sh1np.o sh2np.o xcoff + visibility_test $visibility vnp "visibility ($visibility) (non PIC)" mainnp.o sh1np.o sh2np.o xcoff } else { # SunOS non PIC shared libraries don't permit some cases of # overriding. @@ -238,6 +236,10 @@ proc visibility_run {visibility} { || [ string match $visibility "protected_weak" ] } { setup_xfail "powerpc-*-linux*" } + if { ![ string match $visibility "hidden_undef" ] + && ![ string match $visibility "protected_undef" ] } { + setup_xfail "ia64-*-linux*" + } visibility_test $visibility vnp "visibility ($visibility) (non PIC)" mainnp.o sh1np.o sh2np.o elfvsb # Test ELF shared library relocations with a non-zero load @@ -261,6 +263,10 @@ proc visibility_run {visibility} { || [ string match $visibility "normal" ] } { setup_xfail "powerpc-*-linux*" } + if { ![ string match $visibility "hidden_undef" ] + && ![ string match $visibility "protected_undef" ] } { + setup_xfail "ia64-*-linux*" + } visibility_test $visibility vnp "visibility ($visibility) (non PIC, load offset)" \ mainnp.o sh1np.o sh2np.o elfvsb \ "-T $srcdir/$subdir/elf-offset.ld" @@ -312,6 +318,10 @@ proc visibility_run {visibility} { || [ string match $visibility "protected_weak" ] } { setup_xfail "powerpc-*-linux*" } + if { ![ string match $visibility "hidden_undef" ] + && ![ string match $visibility "protected_undef" ] } { + setup_xfail "ia64-*-linux*" + } visibility_test $visibility vmpnp "visibility ($visibility) (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o elfvsb } } else { diff --git a/ld/testsuite/ld-shared/shared.exp b/ld/testsuite/ld-shared/shared.exp index db33937a3df..b7c1b55cc71 100644 --- a/ld/testsuite/ld-shared/shared.exp +++ b/ld/testsuite/ld-shared/shared.exp @@ -27,18 +27,12 @@ if ![isnative] then {return} # This test can only be run on a couple of ELF platforms. # Square bracket expressions seem to confuse istarget. -if { ![istarget i386-*-sysv4*] \ - && ![istarget i486-*-sysv4*] \ - && ![istarget i586-*-sysv4*] \ - && ![istarget i386-*-unixware] \ - && ![istarget i486-*-unixware] \ - && ![istarget i586-*-unixware] \ - && ![istarget i386-*-elf*] \ - && ![istarget i486-*-elf*] \ - && ![istarget i586-*-elf*] \ - && ![istarget i386-*-linux*] \ - && ![istarget i486-*-linux*] \ - && ![istarget i586-*-linux*] \ +if { ![istarget i?86-*-sysv4*] \ + && ![istarget i?86-*-unixware] \ + && ![istarget i?86-*-elf*] \ + && ![istarget i?86-*-linux*] \ + && ![istarget ia64-*-elf*] \ + && ![istarget ia64-*-linux*] \ && ![istarget m68k-*-linux*] \ && ![istarget mips*-*-irix5*] \ && ![istarget powerpc-*-elf*] \ @@ -198,6 +192,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o] # SunOS non PIC shared libraries don't permit some cases of # overriding. setup_xfail "*-*-sunos4*" + setup_xfail "ia64-*-linux*" shared_test shnp "shared (non PIC)" mainnp.o sh1np.o sh2np.o shared # Test ELF shared library relocations with a non-zero load @@ -207,6 +202,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $srcdir/$subdir/main.c $tmpdir/mainnp.o] setup_xfail "*-*-sunos4*" setup_xfail "*-*-linux*libc1" setup_xfail "powerpc-*-linux*" + setup_xfail "ia64-*-linux*" shared_test shnp "shared (non PIC, load offset)" \ mainnp.o sh1np.o sh2np.o shared \ "-T $srcdir/$subdir/elf-offset.ld" @@ -241,6 +237,7 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG $picflag" $srcdir/$subdir/main.c $tmpdir/m # SunOS non PIC shared libraries don't permit some cases of # overriding. setup_xfail "*-*-sunos4*" + setup_xfail "ia64-*-linux*" shared_test shmpnp "shared (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o shared } } else { -- 2.30.2