Re: ld(1) cannot find entry symbol _start;

2010-09-29 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org Wed Sep 29 05:50:13 2010 > Date: Wed, 29 Sep 2010 11:51:09 +0100 (BST) > From: Anton Shterenlikht > To: Michel Talon > Cc: freebsd-questions@freebsd.org > Subject: Re: ld(1) cannot find entry symbol _start; > > > > On

Re: ld(1) cannot find entry symbol _start;

2010-09-29 Thread Anton Shterenlikht
On Tue, 28 Sep 2010, Michel Talon wrote: Paul B Mahol said: On 9/28/10, Anton Shterenlikht wrote: I'm trying to learn the very basics of the compile - assemble - link process on FreeBSD. Please don't shoot me. Then I try to link the object file into an executable: % ld tmp.o You ar

Re: ld(1) cannot find entry symbol _start;

2010-09-28 Thread Michel Talon
Paul B Mahol said: On 9/28/10, Anton Shterenlikht wrote: > > I'm trying to learn the very basics of the > > compile - assemble - link process on FreeBSD. > > Please don't shoot me. > > > Then I try to link the object file into > > an executable: > > > > % ld tmp.o > > You are missing somethi

Re: ld(1) cannot find entry symbol _start;

2010-09-28 Thread Paul B Mahol
On 9/28/10, Anton Shterenlikht wrote: > I'm trying to learn the very basics of the > compile - assemble - link process on FreeBSD. > Please don't shoot me. > > I've this c code: > > % cat tmp.c > int main() { > int a; > int b; > int c; > > a = 2; > b = 3; >

ld(1) cannot find entry symbol _start;

2010-09-28 Thread Anton Shterenlikht
I'm trying to learn the very basics of the compile - assemble - link process on FreeBSD. Please don't shoot me. I've this c code: % cat tmp.c int main() { int a; int b; int c; a = 2; b = 3; c=a*b; } which I compile into assembly language: % gcc