This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mainCRTstartup warning in ld


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]