From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Camm Maguire Newsgroups: gmane.emacs.devel Subject: Re: `exec shield' test in configure too strict? Date: 22 Oct 2004 17:02:38 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <54is928o0h.fsf@intech19.enhanced.com> References: <20041004212031.GB2219@fencepost> <01c4ab96$Blat.v2.2.2$19340460@zahav.net.il> <05038177-188D-11D9-821D-000D93505B76@swipnet.se> <416A60C2.50408@swipnet.se> <457CE2D6-22D7-11D9-BDB3-000D93505B76@swipnet.se> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1098479036 8421 80.91.229.6 (22 Oct 2004 21:03:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Oct 2004 21:03:56 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 22 23:03:40 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CL6ZX-0005vp-00 for ; Fri, 22 Oct 2004 23:03:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CL6h3-0001zW-Ky for ged-emacs-devel@m.gmane.org; Fri, 22 Oct 2004 17:11:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CL6gv-0001zE-TP for emacs-devel@gnu.org; Fri, 22 Oct 2004 17:11:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CL6gu-0001yv-Px for emacs-devel@gnu.org; Fri, 22 Oct 2004 17:11:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CL6gu-0001ys-Hd for emacs-devel@gnu.org; Fri, 22 Oct 2004 17:11:16 -0400 Original-Received: from [66.134.96.17] (helo=intech19.enhanced.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CL6Yc-0002dT-JQ; Fri, 22 Oct 2004 17:02:42 -0400 Original-Received: from camm by intech19.enhanced.com with local (Exim 3.35 #1 (Debian)) id 1CL6YY-0000lD-00; Fri, 22 Oct 2004 17:02:38 -0400 Original-To: "Jan D." In-Reply-To: <457CE2D6-22D7-11D9-BDB3-000D93505B76@swipnet.se> Original-Lines: 54 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28744 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28744 Greetings! "Jan D." writes: > >> 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? > > It could work, but sounds tricky, you would have to mmap exactly > between BSS and the heap. It is possible that the kernel could > reject such a request. I haven't tested it though. > > > 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. > > I have checked in this method now. I actually have an unexelf.c that > works > with exec-shield on now, but I have only tested it on Fedora Core 2. It > is probably too risky to check it in this close to a release. > I'd be interested to see your unexelf.c patch. Take care, > Jan D. > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel > > > -- Camm Maguire camm@enhanced.com ========================================================================== "The earth is but one country, and mankind its citizens." -- Baha'u'llah