From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EkrdV-0007LZ-Dw for mharc-grub-devel@gnu.org; Fri, 09 Dec 2005 18:26:45 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkrdT-0007Ki-GG for grub-devel@gnu.org; Fri, 09 Dec 2005 18:26:43 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkrdR-0007Jx-BJ for grub-devel@gnu.org; Fri, 09 Dec 2005 18:26:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkrdR-0007Js-44 for grub-devel@gnu.org; Fri, 09 Dec 2005 18:26:41 -0500 Received: from [194.109.24.25] (helo=smtp-vbr5.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ekreh-0005zI-Qe for grub-devel@gnu.org; Fri, 09 Dec 2005 18:28:00 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr5.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB9NQGsD095075 for ; Sat, 10 Dec 2005 00:26:16 +0100 (CET) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: <878xuvsrl1.fsf@xs4all.nl> <1134059234.15370.23.camel@localhost.localdomain> <200512091649.19820.hollis@penguinppc.org> From: Marco Gerards Date: Sat, 10 Dec 2005 00:26:18 +0100 In-Reply-To: <200512091649.19820.hollis@penguinppc.org> (Hollis Blanchard's message of "Fri, 9 Dec 2005 16:49:19 -0600") Message-ID: <87zmn9ons5.fsf@xs4all.nl> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: GRUB2 Build on Mac OS X 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: Fri, 09 Dec 2005 23:26:44 -0000 Hollis Blanchard writes: >> I really hope you're willing to entertain patches that remove use of >> nested functions. =A0If so, I'll certainly put some effort that direction >> when next I look at moving RHEL and Fedora to GRUB 2. > > I am willing to entertain them. > > Marco found a nice description from Roland McGrath on this subject:=20 > https://www.redhat.com/archives/fedora-devel-list/2003-November/msg00838.= html > > His only suggestions for nested functions were a) do not use function poi= nters=20 > with them, or b) rewrite them entirely. Entertain them? Anyways, removing nested functions is not something I want to do. But we could have a case to case look if it would be possible to not use local variables without making the code obscure. I assume we can find all of the locations by having a look at some errors or warnings, perhaps those from the compile log that was sent in. But I still prefer having a sane solution to make it work. The apple specific case won't be fixed this way. But I can not help that apple disabled this feature while it doesn't even rely on an executable stack in all cases. -- Marco