mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ld bug
@ 2005-06-12 15:10 DJ.CnX
  2005-06-12 16:04 ` Willy Tarreau
  0 siblings, 1 reply; 3+ messages in thread
From: DJ.CnX @ 2005-06-12 15:10 UTC (permalink / raw)
  To: linux-kernel


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... .-/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-12 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-12 15:10 ld bug DJ.CnX
2005-06-12 16:04 ` Willy Tarreau
2005-06-12 16:44   ` Jan Engelhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®