[gccsdk] Help with gas

Gavin Wraith gavin at wra1th.plus.com
Sun Dec 30 12:15:36 PST 2012


In message <20121230165053.5732A27C7C at orac.inputplus.co.uk> you wrote:

> Try one of
> 
>     gcc -c sys.s
>     gcc -c -o sys.o sys.s
 
> Without -c for `compile only' the C compiler kicks off the
> linker/loader, the `ld' in the output, to produce a finished executable.
> ld observes the C runtime tries to call main() but no main() is defined.

Brilliant! That did it.

-- 
Gavin Wraith (gavin at wra1th.plus.com)
Home page: http://www.wra1th.plus.com/




More information about the gcc mailing list