From 61bbd3fc241e9479ef366521d2a70cc141293f5b Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Fri, 5 Nov 2010 07:23:09 +0000 Subject: * ld-plugin/plugin.exp (testobjfiles): Dont use HOSTING_CRT0. (testobjfiles_notext): Likewise. (libs): Don't use HOSTING_LIBS; fill with default symbol defs instead. * lib/ld-lib.exp (ld_simple_link_defsyms): Add cygming clause. --- ld/testsuite/lib/ld-lib.exp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ld/testsuite/lib/ld-lib.exp') diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index e5e19ebadd..3d120c8264 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -369,6 +369,11 @@ proc ld_simple_link_defsyms {} { append flags " --defsym __gccmain=0" } + # Windows targets need __main, prefixed with underscore. + if {[istarget *-*-cygwin* ] || [istarget *-*-mingw*]} { + append flags " --defsym ___main=0" + } + # PowerPC EABI code calls __eabi. if {[istarget powerpc*-*-eabi*] || [istarget powerpc*-*-rtems*]} { append flags " --defsym __eabi=0" -- cgit v1.2.1