From: Luca A. <luc...@em...> - 2003-03-20 08:38:14
|
Hi Paolo, On Thu, 2003-03-20 at 08:15, Paolo Gai wrote: > > I think the solution is to have a STARTUP macro in xo.s, instead of a > > MAIN macro in x1.c... If you think it is ok, I'll commit a change on the > > cvs. > > Yes!!!... in that way, we should be able to customize all the startup > phase... Ok, I'll do it, and commit it during my lunch break > > ...and what happens to the _startup function in xlib/x1.c? ... maybe if > a user wants a customized startup phase he do not need anymore that > function... I think the options in this case are two: > - not to compile xlib/x1.c > - compile it with the _startup function "removed" through #ifdef... I would go for the third solution: move _startup() (and all the variable referenced by it) in a new object file. The linker is smart enough to avoid linking that file if there is no reference to _startup(). Luca |