From: Willy Tarreau <willy@w.ods.org>
To: DJ.CnX@phreaker.net
Cc: linux-kernel@vger.kernel.org
Subject: Re: ld bug
Date: Sun, 12 Jun 2005 18:04:50 +0200 [thread overview]
Message-ID: <20050612160450.GB8907@alpha.home.local> (raw)
In-Reply-To: <20050612171050.529d5be8.DJ.CnX@phreaker.net>
Hello,
On Sun, Jun 12, 2005 at 05:10:50PM +0200, DJ.CnX@phreaker.net wrote:
>
> 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... .-/
Although this is not the right list for this, it seems that the start
pointer in your program is 0, and since this page is not mapped, you
get a segfault. How to fix this I don't know, but this definitely is
not a kernel bug.
Willy
next prev parent reply other threads:[~2005-06-12 16:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-12 15:10 DJ.CnX
2005-06-12 16:04 ` Willy Tarreau [this message]
2005-06-12 16:44 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050612160450.GB8907@alpha.home.local \
--to=willy@w.ods.org \
--cc=DJ.CnX@phreaker.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®