From: Pete Wyckoff <pw@osc.edu>
To: Ray Lischner <lisch@tempest-sw.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: What does MAP_EXECUTABLE do?
Date: Fri, 10 Aug 2001 07:13:17 -0400 [thread overview]
Message-ID: <20010810071317.B9627@bigger.osc.edu> (raw)
In-Reply-To: <01080916444603.27109@sycorax>
In-Reply-To: <01080916444603.27109@sycorax>; from lisch@tempest-sw.com on Thu, Aug 09, 2001 at 04:44:46PM -0700
lisch@tempest-sw.com said:
> Running man mmap produces the enlightening text, "Linux also knows
> about ... MAP_EXECUTABLE ..." but does nto tell me what MAP_EXECUTABLE
> actually does, and how it differs from using PROT_EXEC. Reading the
> source code has not helped me much.
PROT_EXEC tells the VM system the area is executable code.
MAP_EXECUTABLE says this mapping is the actual executable file itself,
not a shared library, trampoline, or other executable thing.
Only used for /proc/pid/exe link and /proc/pid/status VmExe field.
You can't set it via mmap() from userspace; the kernel uses it
internally when execing an elf or a.out file.
-- Pete
prev parent reply other threads:[~2001-08-10 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-09 23:44 What does MAP_EXECUTABLE do? Ray Lischner
2001-08-10 11:13 ` Pete Wyckoff [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=20010810071317.B9627@bigger.osc.edu \
--to=pw@osc.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=lisch@tempest-sw.com \
/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