diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2003-05-16 05:04:34 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2003-05-16 05:04:34 +0000 |
commit | b765d4e375fe9067743c493c97f22879597e901c (patch) | |
tree | 998d522b4db166ed45468d96d4ee99b45524b56a /ld/testsuite/ld-elfvsb | |
parent | ccd066678e93f9800d7442aaaedec4b657f89231 (diff) | |
download | gdb-b765d4e375fe9067743c493c97f22879597e901c.zip gdb-b765d4e375fe9067743c493c97f22879597e901c.tar.gz gdb-b765d4e375fe9067743c493c97f22879597e901c.tar.bz2 |
2003-05-15 H.J. Lu <hongjiu.lu@intel.com>
* config/default.exp (gcc_ld_flag): New. Make the newly built
linker available to gcc.
* lib/ld-lib.exp (default_ld_simple_link): Pass $gcc_ld_flag
to gcc.
* ld-elfvers/vers.exp: Use "ld_simple_link $CC" to build shared
libraries.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfweak/elfweak.exp: Likewise.
* ld-shared/shared.exp: Likewise.
* ld-elfvers/vers.exp: Use "-Wl,-rpath,." to build shared
libraries.
* ld-elfvsb/elfvsb.exp: Likewise.
* ld-elfvsb/elfvsb.exp: Remove xfail for powerpc-*-linux*.
* ld-elfweak/elfweak.exp: Use PIC for shared libraries.
Diffstat (limited to 'ld/testsuite/ld-elfvsb')
-rw-r--r-- | ld/testsuite/ld-elfvsb/elfvsb.exp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/ld/testsuite/ld-elfvsb/elfvsb.exp b/ld/testsuite/ld-elfvsb/elfvsb.exp index b5424fc..66546dc 100644 --- a/ld/testsuite/ld-elfvsb/elfvsb.exp +++ b/ld/testsuite/ld-elfvsb/elfvsb.exp @@ -91,7 +91,7 @@ set support_protected "no" if [istarget *-*-linux*] { if [ld_compile "$CC -g $CFLAGS -DPROTECTED_CHECK" $srcdir/$subdir/main.c $tmpdir/main.o] { - if [ld_link $ld $tmpdir/main "$tmpdir/main.o"] { + if [ld_simple_link $CC $tmpdir/main "$tmpdir/main.o"] { catch "exec $tmpdir/main" support_protected } } @@ -99,7 +99,7 @@ if [istarget *-*-linux*] { # The test procedure. proc visibility_test { visibility progname testname main sh1 sh2 dat args } { - global ld + global CC global srcdir global subdir global exec_output @@ -115,7 +115,7 @@ proc visibility_test { visibility progname testname main sh1 sh2 dat args } { if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } { set shared "-bM:SRE -bE:$tmpdir/xcoff.exp" } - if {![ld_simple_link $ld $tmpdir/$progname.so "$shared $shldflags $tmpdir/$sh1 $tmpdir/$sh2"]} { + if {![ld_simple_link $CC $tmpdir/$progname.so "$shared $shldflags $tmpdir/$sh1 $tmpdir/$sh2"]} { if { [ string match $visibility "hidden_undef" ] && [regexp ".*/sh1.c.*: undefined reference to \`visibility\'" $link_output] && [regexp ".*/sh1.c.*: undefined reference to \`visibility_var\'" $link_output] } { @@ -138,7 +138,7 @@ proc visibility_test { visibility progname testname main sh1 sh2 dat args } { if { [istarget rs6000*-*-aix*] || [istarget powerpc*-*-aix*] } { set rpath /lib:$tmpdir } - if ![ld_link $ld $tmpdir/$progname "-rpath $rpath $tmpdir/$main $tmpdir/$progname.so"] { + if ![ld_simple_link $CC $tmpdir/$progname "-Wl,-rpath,$rpath $tmpdir/$main $tmpdir/$progname.so"] { if { [ string match $visibility "hidden" ] && [regexp ".*/main.c.*: undefined reference to \`visibility\'" $link_output] && [regexp ".*/main.c.*: undefined reference to \`visibility_var\'" $link_output] } { @@ -247,10 +247,6 @@ proc visibility_run {visibility} { } else { setup_xfail "*-*-sunos4*" } - if { [ string match $visibility "hidden_weak" ] - || [ string match $visibility "protected_weak" ] } { - setup_xfail "powerpc-*-linux*" - } # Non-pic code uses name binding rules for applications to # reference variables by gp-relative relocs, which can't be @@ -345,10 +341,6 @@ proc visibility_run {visibility} { } else { setup_xfail "*-*-sunos4*" } - if { [ string match $visibility "hidden_weak" ] - || [ string match $visibility "protected_weak" ] } { - setup_xfail "powerpc-*-linux*" - } if { ![ string match $visibility "hidden_undef" ] && ![ string match $visibility "protected_undef" ] } { setup_xfail "ia64-*-linux*" |