* What does MAP_EXECUTABLE do?
@ 2001-08-09 23:44 Ray Lischner
2001-08-10 11:13 ` Pete Wyckoff
0 siblings, 1 reply; 2+ messages in thread
From: Ray Lischner @ 2001-08-09 23:44 UTC (permalink / raw)
To: linux-kernel
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.
--
Ray Lischner (http://www.tempest-sw.com/)
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What does MAP_EXECUTABLE do?
2001-08-09 23:44 What does MAP_EXECUTABLE do? Ray Lischner
@ 2001-08-10 11:13 ` Pete Wyckoff
0 siblings, 0 replies; 2+ messages in thread
From: Pete Wyckoff @ 2001-08-10 11:13 UTC (permalink / raw)
To: Ray Lischner; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-10 11:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-09 23:44 What does MAP_EXECUTABLE do? Ray Lischner
2001-08-10 11:13 ` Pete Wyckoff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox