From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JP8ix-00087c-No for mharc-grub-devel@gnu.org; Tue, 12 Feb 2008 22:55:55 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JP8iw-000873-J7 for grub-devel@gnu.org; Tue, 12 Feb 2008 22:55:54 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JP8iv-00083u-27 for grub-devel@gnu.org; Tue, 12 Feb 2008 22:55:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP8iu-00083i-V7 for grub-devel@gnu.org; Tue, 12 Feb 2008 22:55:52 -0500 Received: from ns39764.ovh.net ([91.121.25.85] helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JP8iu-0007gV-MN for grub-devel@gnu.org; Tue, 12 Feb 2008 22:55:52 -0500 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id 2F3073D930 for ; Wed, 13 Feb 2008 05:03:18 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Wed, 13 Feb 2008 04:55:47 +0100 User-Agent: KMail/1.9.4 References: <1202074413.560.7.camel@k9.localnet> <200802120822.11993.okuji@enbug.org> <1202860566.26121.6.camel@k9.localnet> In-Reply-To: <1202860566.26121.6.camel@k9.localnet> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802130455.48437.okuji@enbug.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [PATCH] to make grub2 compile on NetBSD X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Feb 2008 03:55:54 -0000 On Wednesday 13 February 2008 00:56, walt wrote: > This is a link-time error, and I have no clue how to detect it at > configure time. Please show me how you would do it. I think the following would be sufficient: 1. Find small code which produces a reference to __enable_execute_stack even with -fno-stack-protector. Probably using a nested function should be enough. 2. Compile it to an object file, and run "nm -u object_file | grep __enable_execute_stack". 3. Write a test in aclocal.m4 using the above, and call it from configure.ac. You can see many examples in aclocal.m4. If you have no clue on writing an autoconf test, I can write it for you, if you show me such code. Okuji