problems linking assembly program

Jonathon McKitrick jcm at FreeBSD-uk.eu.org
Wed Oct 19 13:40:47 PDT 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh00000.sh
Type: application/octet-stream
Size: 176 bytes
Desc: "Description: Bourne shell script"
URL: <http://lists.dragonflybsd.org/pipermail/kernel/attachments/20051019/e9c7eeef/attachment-0019.obj>


More information about the Kernel mailing list