DragonFly BSD
DragonFly kernel List (threaded) for 2005-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

problems linking assembly program


From: Jonathon McKitrick <jcm@xxxxxxxxxxxxxxxxx>
Date: Wed, 19 Oct 2005 21:26:39 +0100

I posted to users, but didn't get anywhere.  So I thought I'd post the
simplest possible illustration of the problem here.  You'll need nasm.

Save these 3 attached files (very small).  Then:

modify the path in m.sh to your system lib path.

sh m.sh
runme

Let me know what happens.

jm
-- 
section .text
global foo:function
foo:
	ret
section .text
global _start
_start:
	push 0
	mov eax,1
	int 0x80
	ret

Attachment: m.sh
Description: Bourne shell script



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]