Sunday, 30 December 2012

Re: [gccsdk] Help with gas

In message <20121230165053.5732A27C7C@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@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/

_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment