# Expect script for complex PE tests that require a C compiler
# in addition to the just-built binutils.
-# Copyright (C) 2009-2015 Free Software Foundation, Inc.
+# Copyright (C) 2009-2019 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
global subdir
global verbose
- if ![ld_simple_link "$LD -e start \
+ if ![ld_link "$LD -e start \
--base-file=tmpdir/$testname.base \
--export-all-symbols" tmpdir/$testname.dll \
"tmpdir/basefile1.o"] {
global subdir
global verbose
- if ![ld_simple_link "$CC -shared \
+ if ![ld_link "$CC -shared \
-Wl,--version-script,$srcdir/$subdir/$testname.ver \
-Wl,--output-def,tmpdir/$testname.def" tmpdir/$testname.dll \
"tmpdir/vers-script-dll.o"] {