Mail Archives: djgpp/1996/06/10/09:57:44
> > BTW. does anyone know how I could make my definition overridable from
> > user programs? If I define _crt0_startup_flags in liballeg.a and in a
> > program itself, I get a linker conflict: is there any way to prevent that?
>
> You can change the setting of the bit that controls `sbrk' behavior at
> runtime. I think Charles Sandmann once told me that you can safely switch
> from the unixy behavior to the default one any time, but you cannot go
> back (am I right, Charles?). If this is true, then you could set it to
> unixy by default and then change at runtime if needed.
While this is true for the change of sbrk() algorithm, it's not true for
many of the other flags. The multiple definitions of the startup flags
is a problem I don't know a good fix for.
- Raw text -