Re: [gccsdk] Help with gas

2012-12-31 Thread Peter Naulls
On 12/31/2012 06:55 AM, John Tytgat wrote: In message <20121230165053.5732a27...@orac.inputplus.co.uk> Ralph Corderoy wrote: 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

Re: [gccsdk] Help with gas

2012-12-31 Thread John Tytgat
In message <20121230165053.5732a27...@orac.inputplus.co.uk> Ralph Corderoy wrote: > 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 def

Re: [gccsdk] Help with gas

2012-12-30 Thread Gavin Wraith
In message <20121230165053.5732a27...@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 runtim

Re: [gccsdk] Help with gas

2012-12-30 Thread Ralph Corderoy
Hi Gavin, > I am making a serious effort (again) to get to grips with gcc4_1_2r2. > I am trying to assemble a short piece of ARM code with > gcc -o sys.o sys.s Try one of gcc -c sys.s gcc -c -o sys.o sys.s > I keep getting an error: > : In function 'crt1_data': > crt0.S:(.data+

[gccsdk] Help with gas

2012-12-30 Thread Gavin Wraith
I am making a serious effort (again) to get to grips with gcc4_1_2r2. I am trying to assemble a short piece of ARM code with gcc -o sys.o sys.s I keep getting an error: : In function 'crt1_data': crt0.S:(.data+0x14): undefined reference to 'main' collect2: ld returned 1 exit status make: *