mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-15 05:01:13 +08:00
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.
This commit is contained in:
ld/testsuite
@ -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>
|
2014-08-27 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/17306
|
PR ld/17306
|
||||||
|
@ -410,9 +410,9 @@ proc ld_simple_link_defsyms {} {
|
|||||||
append flags " --defsym __gccmain=0"
|
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*]} {
|
if {[istarget *-*-cygwin* ] || [istarget *-*-mingw*]} {
|
||||||
append flags " --defsym ___main=0"
|
append flags " --defsym __main=0 --defsym ___main=0"
|
||||||
}
|
}
|
||||||
|
|
||||||
# PowerPC EABI code calls __eabi.
|
# PowerPC EABI code calls __eabi.
|
||||||
|
Reference in New Issue
Block a user