Mail Archives: djgpp/1998/06/07/01:22:52
At 11:25 6/5/1998 +0300, Yoav Shadmi wrote:
>Hello
>
> I noticed that djgpp's object make an external reference to
> function ___main(). Just wondering why it does that, and what
> is this ___main() function all about.
Use the source, Luke! src/libc/crt0/_main.c.
It sets a flag that tells the program it's been loaded (strange programs
like Emacs that write their memory image as an executable need this), and
also runs constructors.
Nate Eldredge
nate AT cartsys DOT com
- Raw text -