lkml.org 
[lkml]   [2005]   [Jun]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectld bug

hello guys....

source:

section .text

global main

msg db "och bin",0x0
msg_len equ $-msg

main:
pusha
mov eax,4
mov ebx,1
mov ecx,msg
mov edx,msg_len
int 0x80

popa
xor eax,eax
inc eax
int 0x80


compilation command:
sh# nasm -f elf -o new.o new.asm
sh# ld -e main -o new new.o
sh# strace ./new
execve("./new", ["./new"], [/* 78 vars */]) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


i compiled the whole shit with gcc and it worked... .-/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-12 17:14    [W:0.048 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site