[gccsdk] [GCCSDK commit] lee - r2509 - in trunk/gcc/unixlib: Docs source/sys source/unix

Nick Burrett nick at sqrt.co.uk
Fri Jan 19 01:20:06 PST 2007


svnuser at riscos.info wrote:
> Author: lee
> Date: 2007-01-18 22:04:36 +0000 (Thu, 18 Jan 2007)
> New Revision: 2509
> 
> Modified:
>    trunk/gcc/unixlib/Docs/Changelog
>    trunk/gcc/unixlib/source/sys/_syslib.s
>    trunk/gcc/unixlib/source/unix/unix.c
> Log:
> Thu Jan 18 19:39:06 2007  Lee Noar  <leenoar at ntlworld.com>
> 
> 	* source/sys/_syslib.s: For the ELF build, convert __main into
> 	an initialisation function called __unixlib_main that returns
> 	to its caller. This allows the call to _main (and ultimately
> 	main()) to be moved into the executable.

I don't think this is correct.  For starters, you've now put a 
dependency on '__unixlib_main' in crti-riscos.asm, which means that the 
gcc runtime is now dependent on UnixLib.  What would happen if we wanted 
to link against a shared version of libscl?

I don't see why you need to change from __main here anyway.  If you 
still do, then choose ___main instead.

Regards,

Nick.




More information about the gcc mailing list