summaryrefslogtreecommitdiff
path: root/ld/testsuite/lib/ld-lib.exp
diff options
context:
space:
mode:
authorDave Korn <dave.korn@artimi.com>2010-11-05 07:23:09 +0000
committerDave Korn <dave.korn@artimi.com>2010-11-05 07:23:09 +0000
commit61bbd3fc241e9479ef366521d2a70cc141293f5b (patch)
tree46fa98b3ecc820a046376dcf07c30881f2314e1b /ld/testsuite/lib/ld-lib.exp
parent9167e5c6b080baae619af527ee43cf89e1898b6f (diff)
downloadbinutils-redhat-61bbd3fc241e9479ef366521d2a70cc141293f5b.tar.gz
* 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.
Diffstat (limited to 'ld/testsuite/lib/ld-lib.exp')
-rw-r--r--ld/testsuite/lib/ld-lib.exp5
1 files changed, 5 insertions, 0 deletions
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"