From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HvFx4-0004dW-I1 for mharc-grub-devel@gnu.org; Mon, 04 Jun 2007 13:02:42 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HvFx3-0004bL-Fy for grub-devel@gnu.org; Mon, 04 Jun 2007 13:02:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HvFx2-0004aF-Si for grub-devel@gnu.org; Mon, 04 Jun 2007 13:02:41 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HvFx2-0004Zh-O0 for grub-devel@gnu.org; Mon, 04 Jun 2007 13:02:40 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HvFx2-0003N7-5l for grub-devel@gnu.org; Mon, 04 Jun 2007 13:02:40 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HvFwp-0001LA-2y for grub-devel@gnu.org; Mon, 04 Jun 2007 19:02:27 +0200 Received: from cable-87-78-192-228.netcologne.de ([87.78.192.228]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jun 2007 19:02:27 +0200 Received: from patrick by cable-87-78-192-228.netcologne.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Jun 2007 19:02:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: grub-devel@gnu.org From: Patrick Georgi Date: Mon, 04 Jun 2007 19:03:18 +0200 Message-ID: References: <464F1811.7060507@georgi-clan.de> <200705191944.13081.okuji@enbug.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cable-87-78-192-228.netcologne.de User-Agent: Thunderbird 2.0b2 (X11/20070411) In-Reply-To: <200705191944.13081.okuji@enbug.org> Sender: news X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH] make grub2 compile with libc-less crosscompilers 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: Mon, 04 Jun 2007 17:02:41 -0000 Yoshinori K. Okuji schrieb: > Also, without grub-emu, how do you plan to debug GRUB? I'd have some questions relating to that to improve the patch, if possible. But first, please note that grub-emu currently can't work because argp.h and its features aren't provided on Solaris, so I can't test the proper operation of it. As for grub-emu, does it use the target-built objects (ie. .mod files) and loads them in the host system? If so, is this why you need the _start/start (and the other) detection, so the modules contain the right symbol for the host? In this case, the right solution would probably be to do those tests using the host compiler, not the target's. The target doesn't care one way or the other (there is no non-grub code around that looks for symbols at boot time), so it can just inherit, what the host is doing. I can provide a patch that takes this into account, if my guesses are correct, but I'd need some more insights in what exactly is required. Thanks, Patrick Georgi