Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MZT5D-0003rf-MT for mharc-grub-devel@gnu.org; Fri, 07 Aug 2009 13:18:23 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZT5B-0003qv-O8 for grub-devel@gnu.org; Fri, 07 Aug 2009 13:18:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZT56-0003pG-9r for grub-devel@gnu.org; Fri, 07 Aug 2009 13:18:20 -0400 Received: from [199.232.76.173] (port=45498 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZT55-0003pD-03 for grub-devel@gnu.org; Fri, 07 Aug 2009 13:18:15 -0400 Received: from rv-out-0708.google.com ([209.85.198.241]:11925) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZT54-0004Cl-JY for grub-devel@gnu.org; Fri, 07 Aug 2009 13:18:14 -0400 Received: by rv-out-0708.google.com with SMTP id f25so617105rvb.6 for ; Fri, 07 Aug 2009 10:18:12 -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=6mFLBPAHkkOFmivMHwaYnl6XnbyYT7X1/eqRt+6B1X4=; b=xtG8Ez79vjgD0FvUxojYycD5YXiiXvKHvvvWL82mnA8efJiv4hNM6ibj6JpEqnOTim KRTKCo3r2UblWMg/3hhLvgFophc9R81LBl1ENVfK1k1EkMC+te/RaiiSSczRxYTptUiw wnirhZdbUn1lQnd7sklOtKbQJyoxuLUSOxHhQ= 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=H6arYYZs5AXQyGjUetyIgVJoMX/McYKMVPVzfBmJgIEJ9dL13cHG1X3+jly1eZRaz2 SZriWYDZZDoV6ZAZPkZ6pWMu/R2V0HG/DDJvoRWK3ZzORftkqXWO/JVuL+TnNA0v0hLD hyJIkgLC5nOIvxOBpONV9z2JSeDoShuufeK88= MIME-Version: 1.0 Received: by 10.141.1.7 with SMTP id d7mr496612rvi.221.1249665492343; Fri, 07 Aug 2009 10:18:12 -0700 (PDT) In-Reply-To: References: <1248270128.10302.14.camel@accesodirecto.casa> Date: Sat, 8 Aug 2009 01:18:12 +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: Fri, 07 Aug 2009 17:18:22 -0000 Hi, Update: Support 64-bit mach-o object files, now you can build i386-pc, i386-efi and x86_64-efi in OSX. Use PIC in x86_64-efi. Relocation R_X86_64_32S would cause problem in machine with 2G or more memory, the only way to get rid of it is to use large memory model, or use PIC. Large model is only available in gcc-4.3 or later, and the generated image is quite large as all address is 8 bytes long. PIC is always enabled in mingw-w64 and apple's gcc, it just need a little work to support PIC in elf platform. Now all system uses PIC instead of large memory model. As with this version, it's possible to build i386-pc, i386-efi and x86_64-efi in Linux/OSX/Windows, using the native build tool, no cross compiler. Only gcc and as is needed to generated object file *.o from source code, linker (ld) and converter (objcopy, objconv, grub-pe2elf, grub-macho2img) are not needed as the conversion is handled by grub-mkrawimage and grub-mkmod. -- Bean