Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ekpta-00049r-IV for mharc-grub-devel@gnu.org; Fri, 09 Dec 2005 16:35:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EkptY-00049a-Hi for grub-devel@gnu.org; Fri, 09 Dec 2005 16:35:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EkptW-00049A-Eb for grub-devel@gnu.org; Fri, 09 Dec 2005 16:35:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EkptV-000494-R9 for grub-devel@gnu.org; Fri, 09 Dec 2005 16:35:10 -0500 Received: from [194.109.24.33] (helo=smtp-vbr13.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ekpul-0006Vk-Oi for grub-devel@gnu.org; Fri, 09 Dec 2005 16:36:28 -0500 Received: from localhost.localdomain (mgerards.xs4all.nl [82.92.27.129]) by smtp-vbr13.xs4all.nl (8.13.3/8.13.3) with ESMTP id jB9LYhGg093766 for ; Fri, 9 Dec 2005 22:34:43 +0100 (CET) (envelope-from mgerards@xs4all.nl) Mail-Copies-To: mgerards@xs4all.nl To: The development of GRUB 2 References: From: Marco Gerards Date: Fri, 09 Dec 2005 22:34:44 +0100 In-Reply-To: (Andrei Warkentin's message of "Thu, 8 Dec 2005 17:06:43 -0600") Message-ID: <87y82uosy3.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=us-ascii 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 21:35:13 -0000 Andrei Warkentin writes: > On Dec 8, 2005, at 4:01 PM, andre-smith@speakeasy.net wrote: > >> The Mac OS X GCC compiler will not build GRUB2, due static linking >> at address 0x2000; this error can be confirmed during the configure >> process. If I could build GRUB2 using the Mac OS X GCC, I would be >> able to build GRUB2 images from Mac OS X. > > The OS X ld is not the GNU linker - so sure it can't link at 0x2000, > it doesn't know what -T means. You would probably use some > permutation of the -segaddr option. Moreover, OS X uses the Mach-O > binary format, not ELF... As I explained before only ELF can be used. >> The binary I attempted the build using the cross compiler tool >> chain powerpc-elf, would have executed on PowerPC Linux, but I >> would not build due to the nested function support being disabled >> in the Apple GCC > > I don't think I understand - you can build a bootstrap GCC targetted > at powerpc-linux, from the sources obtained via official GNU ftp. > There would not be any restrictions there... This would allow you to > build powerpc-elf binaries needed by OF. > >> >> Since the GRUB2 tools built using a Linux GCC compiler will suffice >> at the moment, I can see why the team is not overly concerned with >> this issue. If GRUB2 is going to be portable(Mac OS X), then some >> changes will be needed to accomplish this goal. > > I think it would be an interesting idea to allow the use of different > toolsets to produce the boot-time files and the system utilities. > This way, the boot-time stuff can be build as powerpc-elf, while the > OS X system utilities can be built as Mach-O (well, not 'can' - > should, there is no other way here). This is possible already. For example when I crosscompile GRUB on my x86 I get grub-mkimage as x86 tools and grubof as a PPC ELF. Perhaps it doesn't build Mach-O yet, but that is something that can be fixed. -- Marco