diff options
author | Dave Korn <dave.korn@artimi.com> | 2010-11-05 07:23:10 +0000 |
---|---|---|
committer | Dave Korn <dave.korn@artimi.com> | 2010-11-05 07:23:10 +0000 |
commit | 36fe835f75b5800bc29879bd4ff8eb8bc1896140 (patch) | |
tree | a5f6e97a596e90cd8feb9cfbe914d77d46cc1e8f /ld/testsuite/lib | |
parent | d44ad554d42dd9e80692b0fd2a48b950d6a7a38e (diff) | |
download | gdb-36fe835f75b5800bc29879bd4ff8eb8bc1896140.zip gdb-36fe835f75b5800bc29879bd4ff8eb8bc1896140.tar.gz gdb-36fe835f75b5800bc29879bd4ff8eb8bc1896140.tar.bz2 |
* 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')
-rw-r--r-- | ld/testsuite/lib/ld-lib.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp index e5e19eb..3d120c8 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" |