David Lariviere columbia.edu> writes:
>
> Hi Kai,
>
> Thank you so much. That got it compiling. I had tried it before, being
> inspired by the results of objdump on libc.a, but it didn't work at that
> point because I hadn't yet read about the importance of ordering the -lc
> after the object. I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to David Lariviere on 9/20/2006 1:51 AM:
> The code is actually taken out of "Professional Assembly Language" by
> Richard Blum.
Which is Linux specific. Don't expect it to work on cygwin, because
cygwin has a different ABI.
>
> I presume
-Original Message-
From: Kai Tietz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 20, 2006 3:30 AM
To: David Lariviere
Cc: cygwin@cygwin.com
Subject: Re: Linking Assembly Code - Can't resolve printf
Hallo David,
Some OS's - as cygwin - expand names by underscores. Therefore simp
27;t work this way ...
Chears,
i.A. Kai Tietz
"David Lariviere" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
20.09.2006 09:16
To
cc
Subject
Linking Assembly Code - Can't resolve printf
I have a simple assembly program that I am trying to compile, but ld
cannot
David Lariviere wrote:
> movl $0, %ebx
> movl $1, %eax
> int $0x80
> ...
>
> I've tried linking in numerous libraries, hoping one would resolve printf,
> and in numerous order of where to include the -lxxx, but I can't get it to
> compile. I've also tried it on numerous co
I have a simple assembly program that I am trying to compile, but ld cannot
resolve printf.
--
#movtest3.s - Example using index memory locations
.section .data
output:
.asciz "The value is %d\n"
values:
.int 10,15,20,25,30,35,40,45,50,55,60
.section .text
.glob
6 matches
Mail list logo