+2000-10-17 Philip Blundell <pb@futuretv.com>
+
+ * lib/ld-lib.exp, ld-elfvsb: Update from trunk version.
+
2000-04-12 Alan Modra <alan@linuxcare.com.au>
* ld-selective/selective.exp (test4): Delete incorrect foo__1B test.
} else {
setup_xfail "*-*-sunos4*"
}
- if { [ string match $visibility "hidden_weak" ]
- || [ string match $visibility "protected_weak" ] } {
- setup_xfail "powerpc-*-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
setup_xfail "*-*-sunos4*"
setup_xfail "*-*-linux*libc1"
}
- if { [ string match $visibility "hidden_normal" ]
- || [ string match $visibility "hidden_weak" ]
- || [ string match $visibility "protected" ]
- || [ string match $visibility "protected_undef_def" ]
- || [ string match $visibility "protected_weak" ]
- || [ string match $visibility "normal" ] } {
- setup_xfail "powerpc-*-linux*"
- }
visibility_test $visibility vnp "visibility ($visibility) (non PIC, load offset)" \
mainnp.o sh1np.o sh2np.o elfvsb \
"-T $srcdir/$subdir/elf-offset.ld"
} else {
setup_xfail "*-*-sunos4*"
}
- if { [ string match $visibility "hidden_weak" ]
- || [ string match $visibility "protected_weak" ] } {
- setup_xfail "powerpc-*-linux*"
- }
visibility_test $visibility vmpnp "visibility ($visibility) (PIC main, non PIC so)" mainp.o sh1np.o sh2np.o elfvsb
}
} else {
global HOSTING_LIBS
global LIBS
global host_triplet
+ global link_output
set objs "$HOSTING_CRT0 $objects"
set libs "$LIBS $HOSTING_LIBS"
verbose -log "$ld $HOSTING_EMU $flags -o $target $objs $libs"
- catch "exec $ld $HOSTING_EMU $flags -o $target $objs $libs" exec_output
- set exec_output [prune_warnings $exec_output]
- if [string match "" $exec_output] then {
+ catch "exec $ld $HOSTING_EMU $flags -o $target $objs $libs" link_output
+ set exec_output [prune_warnings $link_output]
+ if [string match "" $link_output] then {
return 1
} else {
- verbose -log "$exec_output"
+ verbose -log "$link_output"
return 0
}
}
#
proc default_ld_simple_link { ld target objects } {
global host_triplet
-
+ global link_output
+
if { [which $ld] == 0 } then {
perror "$ld does not exist"
return 0
verbose -log "$ld $flags -o $target $objects"
- catch "exec $ld $flags -o $target $objects" exec_output
- set exec_output [prune_warnings $exec_output]
+ catch "exec $ld $flags -o $target $objects" link_output
+ set exec_output [prune_warnings $link_output]
# We don't care if we get a warning about a non-existent start
# symbol, since the default linker script might use ENTRY.