This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Give a better error for PCH with exec-shield-randomize
On Mar 4, 2004, Ian Lance Taylor <ian@wasabisystems.com> wrote:
> It might be slightly complex, but I don't think it's all that fragile.
It is. Just like the original approach of using MAP_FIXED. MAP_FIXED
opens the door to all sorts of oddities. When you ask the kernel to
map something on a fixed location, it will often assume you know what
you're doing, and map it even if it overlaps with other data you've
mapped before. I think the right solution for this problem is to not
use MAP_FIXED, and cope with getting an address different from what
you requested by either relocating the pointers or giving up.
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}