From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] executable data segment ?
Date: Sat, 10 May 2003 07:01:48 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590723705720@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590723705718@msgid-missing>
>>>>> On Sat, 10 May 2003 10:00:24 +0530 (IST), CH Gowri Kumar <gkumar@csa.iisc.ernet.in> said:
>> Is there a way in linux on ia64 to execute code in the
>> datasegment ?
> Yes, it is possible to execute code in the data
> segment. The data segment by default is not executable. You
> might have to make it executable using the mprotect system call.
And if you want to be able to get a backtrace through dynamically
generated code, please consider using the dynamic unwind info API of
libunwind (http://www.hpl.hp.com/research/linux/libunwind/). No
man-page yet, I'm afraid, but there is an example in the libunwind
source distribution (tests/ia64-test-dyn1.c) which should make it
obvious how to use this API.
Imagine being about to use gdb to debug your dynamically-generated
code!
--david
prev parent reply other threads:[~2003-05-10 7:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-10 3:11 [Linux-ia64] executable data segment ? Ronald Veldema
2003-05-10 4:42 ` CH Gowri Kumar
2003-05-10 7:01 ` David Mosberger [this message]
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=marc-linux-ia64-105590723705720@msgid-missing \
--to=davidm@napali.hpl.hp.com \
--cc=linux-ia64@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.