> 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
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
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
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;
>
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