From owner-freebsd-hackers Tue Mar 13 6:32:15 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from internethelp.ru (wh.internethelp.ru [212.113.112.145]) by hub.freebsd.org (Postfix) with ESMTP id BA8A937B72A for ; Tue, 13 Mar 2001 06:32:11 -0800 (PST) (envelope-from nkritsky@internethelp.ru) Received: from ibmka ([192.168.0.6]) by internethelp.ru (8.9.3/8.9.3) with SMTP id RAA18519 for ; Tue, 13 Mar 2001 17:32:08 +0300 (MSK) Message-ID: <00b701c0abca$624b7630$0600a8c0@ibmka.internethelp.ru> From: "Nickolay A. Kritsky" To: Subject: FreeBSD asm problem Date: Tue, 13 Mar 2001 17:32:07 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1251" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all! It seems to me that you guys are my last hope, but if i am asking in the wrong place - sorry. I wrote my first asm program for FreeBSD: section .code global _start _start: push dword envp push dword argvp push dword fname mov eax,59 ; execve int 80h hlt ; i should never get here section .data fname db '/bin/sh',0 envp dd 0 argvp dd 0 ;End of program after compiling and linking i run it and got SIGBUS error when run under gdb i can see that int 80h returns with eax=2 (ENOENT? does it mean file not found?) I have a feeling that i have missed something very important. Thank you. NKritsky - SysAdmin InternetHelp.Ru http://www.internethelp.ru e-mail: nkritsky@internethelp.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message