Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MYkm2-0003OQ-Ko for mharc-grub-devel@gnu.org; Wed, 05 Aug 2009 13:59:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYkm0-0003Ns-WE for grub-devel@gnu.org; Wed, 05 Aug 2009 13:59:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYklw-0003MI-99 for grub-devel@gnu.org; Wed, 05 Aug 2009 13:59:36 -0400 Received: from [199.232.76.173] (port=52813 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYklw-0003ME-5k for grub-devel@gnu.org; Wed, 05 Aug 2009 13:59:32 -0400 Received: from rv-out-0708.google.com ([209.85.198.242]:60226) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MYklv-0006RG-Nh for grub-devel@gnu.org; Wed, 05 Aug 2009 13:59:31 -0400 Received: by rv-out-0708.google.com with SMTP id c5so1016225rvf.2 for ; Wed, 05 Aug 2009 10:59:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=nfKcOYEb/TuS3ict8V9YK4Ejy/jnv37mc7XAT/lhFNo=; b=htZVf1/ARJ/j0kfHvD975ST8pVfIhgNLiUexbzLzOkqRoPav4CHEl4abeTTjyunogz jGJR8F2+KLGyAuhhwScVVZDWK9B68nBfXVz+xXTNLdECxu9EMrFRj91bi6Clna2/iTz0 RD0/+OwU+lKix2SsyvD/HIn58P6Zma4+zEggk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=pHHOf5BzoTuOKCZhCGFADcPBag1qKSfaSHtJFiPVzWfll+2eRZBOuuFAix+vAKTY9l 7x/py6ipy+GP9BVKNPxcnaQpu/YP5wh1TVIWdT756CWgT0zbIlEVImNSuOiLAi/dniHK 59/fhl8nr6ZT9dCN+4NKVEnZeifjqIlSDWxJ8= MIME-Version: 1.0 Received: by 10.140.166.4 with SMTP id o4mr6144766rve.74.1249495169949; Wed, 05 Aug 2009 10:59:29 -0700 (PDT) In-Reply-To: References: <1248263254.10302.11.camel@accesodirecto.casa> <1248270128.10302.14.camel@accesodirecto.casa> Date: Thu, 6 Aug 2009 01:59:29 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] New object format 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, 05 Aug 2009 17:59:37 -0000 Hi, Update: Support mach-o object file, now you can compile grub2 in OSX using gcc 4.0 from Xcode. No other tool is needed except gcc and as. Tested ok with i386-pc and i386-efi. BTW, here are a list of issues of apple gcc 4.0: Local jumps with more that one digit (such as 10f, 10b) doesn't work, this affect the lzma decoder. I change it with symbol label like lzma_10. Relocation in code16 segment is trouble, apple cc generate wrong information sometimes. So use local symbol (L_xx) in 16-bit code. Line asm volatile ("jmp *%2" : : "b" (0), "S" (real_mode_mem), "g" (params->code32_start)); in loader/i386/linux.c generate an error message, i comment it out so that compilation can continue, so the linux loader would be broken for the time being. -- Bean