emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `exec shield' test in configure too strict?


From: Richard Stallman
Subject: Re: `exec shield' test in configure too strict?
Date: Tue, 12 Oct 2004 04:56:54 -0400

    > Another idea: can `main' contain code to move its heap address to the
    > desired place, at startup?

    No, as the desired place is not a mapped memory region, you can not write 
    there.

How about mapping a memory region at the desired place, then
putting the heap address there?

I think this is the most reliable solution, since it doesn't
depend on testing the configuration in advance.  It will always
be there when it is needed.

      But we could do as described by Camm Maguire, check if the heap is not 
    at the correct place at temacs startup, and if it is not, call 
    personality(LINUX32) and exec() temacs again.

That also seems like a good method, perhaps better.  It would require
testing whether the symbols pertaining to personalites are developed,
but that is a test done by compilation, so it should be unproblematical.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]