mainCRTstartup warning in ld

Adam Miedziński miedziu3@gmail.com
Sat Mar 25 05:05:00 GMT 2006


can sb know why (newest download cygwin) after compiling in "as" such a code:

.global _start

_start:
movl $1,%eax
movl $0,%ebx
int $0x80

when i link with "ld" it shows warning about mainCRTstartup . .and
when i try to run .. it crashes before code executed!
and why such a simple program needs mainCRTstartup?


More information about the Cygwin mailing list