aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2014-08-29 10:27:44 +0930
committerAlan Modra <amodra@gmail.com>2014-08-29 10:34:18 +0930
commit5a1431e66e1cebb5b4bbc6355804d8a00a4c8d74 (patch)
treeffc2bdc4000584fb2721593e4a30310e9126777e
parent53e989de2657a687ae1c06a973957651ed2ab943 (diff)
downloadgdb-5a1431e66e1cebb5b4bbc6355804d8a00a4c8d74.zip
gdb-5a1431e66e1cebb5b4bbc6355804d8a00a4c8d74.tar.gz
gdb-5a1431e66e1cebb5b4bbc6355804d8a00a4c8d74.tar.bz2
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.
-rw-r--r--ld/testsuite/ChangeLog5
-rw-r--r--ld/testsuite/lib/ld-lib.exp4
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog
index 51355ef..8b9bec7 100644
--- a/ld/testsuite/ChangeLog
+++ b/ld/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-29 Alan Modra <amodra@gmail.com>
+
+ * lib/ld-lib.exp (ld_simple_link_defsyms): Provide both __main
+ and ___main for windows targets.
+
2014-08-27 H.J. Lu <hongjiu.lu@intel.com>
PR ld/17306
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index e4084e1..292a873 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.