From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: `exec shield' test in configure too strict? Date: Mon, 4 Oct 2004 23:37:52 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <20041004212031.GB2219@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1096925947 18656 80.91.229.6 (4 Oct 2004 21:39:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Oct 2004 21:39:07 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 04 23:38:58 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 1CEaXq-0002KV-00 for ; Mon, 04 Oct 2004 23:38:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CEaeP-0002YW-L3 for ged-emacs-devel@m.gmane.org; Mon, 04 Oct 2004 17:45:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CEaeG-0002YG-J5 for emacs-devel@gnu.org; Mon, 04 Oct 2004 17:45:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CEaeG-0002Y4-6r for emacs-devel@gnu.org; Mon, 04 Oct 2004 17:45:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CEaeG-0002Y1-3D for emacs-devel@gnu.org; Mon, 04 Oct 2004 17:45:36 -0400 Original-Received: from [195.54.107.73] (helo=mxfep02.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CEaXb-0003t3-UU; Mon, 04 Oct 2004 17:38:44 -0400 Original-Received: from coolsville.localdomain ([213.115.26.74] [213.115.26.74]) by mxfep02.bredband.com with ESMTP id <20041004213842.TVIO27821.mxfep02.bredband.com@coolsville.localdomain>; Mon, 4 Oct 2004 23:38:42 +0200 In-Reply-To: <20041004212031.GB2219@fencepost> Original-To: Miles Bader X-Mailer: Apple Mail (2.619) 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:27902 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27902 > On Mon, Oct 04, 2004 at 05:04:26PM +0200, Jan D. wrote: >>> and so emacs refuses to configure -- but if disable this test by >>> doing: >>> >>> $ make ac_cv_file__proc_sys_kernel_exec_shield=no >>> >>> Then Emacs configures and dumps just fine, despite not using >>> `setarch'. >> >> Does that machine have a /proc/sys/kernel/exec-shield-randomize file? > > Yes: > > $ cat /proc/sys/kernel/exec-shield-randomize > 1 Incredible, I expected it to be zero. Too bad there is a lack of documentation on this feature. I do know that both the compiler and linker are involved, so maybe they have not been modified on that machine? Anyway, I'll try to come up with a better test where we check the heap start address explicitly. Jan D.