From 5a1431e66e1cebb5b4bbc6355804d8a00a4c8d74 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 29 Aug 2014 10:27:44 +0930 Subject: [PATCH] Fix testsuite ld_simple_link_defsyms for windows targets * lib/ld-lib.exp (ld_simple_link_defsyms): Provide both __main and ___main for windows targets. --- ld/testsuite/ChangeLog | 5 +++++ ld/testsuite/lib/ld-lib.exp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 51355efc7d7..8b9bec76d22 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-08-29 Alan Modra + + * lib/ld-lib.exp (ld_simple_link_defsyms): Provide both __main + and ___main for windows targets. + 2014-08-27 H.J. Lu PR ld/17306 diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index e4084e13eaa..292a8734e6f 100644 --- a/ld/testsuite/lib/ld-lib.exp +++ b/ld/testsuite/lib/ld-lib.exp @@ -410,9 +410,9 @@ proc ld_simple_link_defsyms {} { append flags " --defsym __gccmain=0" } - # Windows targets need __main, prefixed with underscore. + # Windows targets need __main, some prefixed with underscore. if {[istarget *-*-cygwin* ] || [istarget *-*-mingw*]} { - append flags " --defsym ___main=0" + append flags " --defsym __main=0 --defsym ___main=0" } # PowerPC EABI code calls __eabi. -- 2.30.2