From: Kirill Ratkine <rabbitos@nm.ru>
To: linux-assembly@vger.kernel.org
Subject: ld trouble
Date: Wed, 29 Jan 2003 13:08:09 +0300 [thread overview]
Message-ID: <3E37A809.7080407@nm.ru> (raw)
Hello.
Could somebody explain me where the problem is?
my nasm file:
; ===
section .text
global _start
msg db 'Dyna Loading!',0xa
len equ $ - msg
_start:
mov edx,len
mov ecx,msg
mov ebx,1
mov eax,4
int 0x80
mov eax,1
int 0x80
my Makefile:
#
cg: cg.o
ld -s -o cg cg.o -ldl
cg.o: cg.asm
nasm -f elf cg.asm
I added '-ldl' because I'm going to use dlopen and other functions for
shared lib loading. Compilation is Ok but ... system says 'this is non
executable file' when I try to run it. Why??? (If I delete '-ldl'
everything is Ok).
Do I need to make my myself loader for '.so', indeed?
next reply other threads:[~2003-01-29 10:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-29 10:08 Kirill Ratkine [this message]
2003-01-29 15:12 ` ld trouble hpr
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=3E37A809.7080407@nm.ru \
--to=rabbitos@nm.ru \
--cc=linux-assembly@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.