Mail Archives: djgpp-workers/1997/07/21/21:36:23
On 21 Jul 97 at 13:20, Andrew Crabtree wrote:
> We have added the line
>
> #define HAS_INIT_SECTION
>
> into go32.h. This will
>
> a) suppress generatoin of __main in libgcc.a
That's fine, but is there another solution (see below)?
> b) Suppress generation of a call to __main when compiling a function
> named main.
I *DON'T* like that one personally, as I use the feature in my
kernel. However, I CAN live with it (it just breaks my kernel, but
that's repairable). What about having another #define, maybe
CALL___MAIN_ANYWAY or something similar, as I think that the
generated call to __main is a good idea.
> Item b) seemed redundant as the crt code calls __main anyway before
> calling main. As a result the check to see if the constructors have
> already been processed can probably be removed.
That is the only point I can agree on about removing the call to
__main.
Bill
--
Leave others their otherness.
- Raw text -