tech-net archive

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

Re: asm source



Hi!

I wrote some examples to the wiki:
http://wiki.netbsd.se/NetBSD_Assembly

BTW, it shouldnt sigsegv on missing elf header, but apparently it does...

On Fri, 15 Feb 2008 11:35:23 +0100, <vlk%gjbi.cz@localhost> wrote:

Hello,

I need to write short binary for I/O control in assembler.
When I try to run any binary file (from samples too) translate by:
nasm -f hello.asm
ln -s -o hello hello.o
all is OK, but after run ./hello or ald hello output is:
$./hello
Memory fault (core dumped)

08048080                      BA0E000000           mov edx, 0xe
ald> s
Program terminated with signal SIGSEGV (Segmentation fault)
ald> q

In FreeBSD in first line in all sources asm codes is:
%include    'system.inc'

Can anyone write me what must by define in assembler source
for correct this problem on NetBSD platform?

Thanks Jan Vlk






--
Adam Hoka
CC if you reply, please.



Home | Main Index | Thread Index | Old Index