This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11754] RFE: dlopen of ET_EXEC file
- From: "roland at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 24 Jun 2010 23:24:46 -0000
- Subject: [Bug libc/11754] RFE: dlopen of ET_EXEC file
- References: <20100624232048.11754.jreiser@BitWagon.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From roland at gnu dot org 2010-06-24 23:24 -------
Is there a reason you can't just build an executable you want to use this way
with -fPIE -pie? A PIE is both an executable and an ET_DYN.
The usual handling for ET_EXEC files uses MAP_FIXED, which will clobber any
existing mappings. So it is dangerous to blindly load an ET_EXEC file. There
is not really any very good way for dlopen to determine that the regions used by
the particular ET_EXEC file are not already mapped.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11754
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.