Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1FUkxS-0004e7-Vj for mharc-grub-devel@gnu.org; Sat, 15 Apr 2006 09:37:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FUkxR-0004dc-Ml for grub-devel@gnu.org; Sat, 15 Apr 2006 09:37:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FUkxP-0004ck-VK for grub-devel@gnu.org; Sat, 15 Apr 2006 09:37:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUkxP-0004ca-Fg for grub-devel@gnu.org; Sat, 15 Apr 2006 09:36:59 -0400 Received: from [209.86.89.68] (helo=smtpauth08.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FUkxc-0003ig-Ey for grub-devel@gnu.org; Sat, 15 Apr 2006 09:37:12 -0400 Received: from [63.246.184.80] (helo=[192.168.0.101]) by smtpauth08.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1FUkxO-00083g-P5 for grub-devel@gnu.org; Sat, 15 Apr 2006 09:36:58 -0400 Mime-Version: 1.0 (Apple Message framework v623) In-Reply-To: <87ejzzceht.fsf@xs4all.nl> References: <3ee0a8f18ea58d3a5094266f8e7f8e42@penguinppc.org> <1fa98bd274eb1d8fffb77fe4de3f1363@penguinppc.org> <87ejzzceht.fsf@xs4all.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <060de9ea42f2cd842bfd0fcac043bf48@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Sat, 15 Apr 2006 08:37:13 -0500 To: The development of GRUB 2 X-Mailer: Apple Mail (2.623) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec790f22c7f59c2c3fd79fea970b932e411b350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: Re: [ppc patch] link with -m32 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: Sat, 15 Apr 2006 13:37:02 -0000 On Apr 15, 2006, at 5:36 AM, Marco Gerards wrote: > I think LDFLAGS are really processed by cc, no? So we do not use ld, > but cc if I am not mistaken. No; compare the man pages for ld and gcc. For example, -m32 is a gcc flag, and -melf32ppc is an ld flag. GCC complains if you pass it -melf32ppc, and ld complains if you pass it -m32. Look at all the -Wl options we use in grubof_LDFLAGS: -Wl means "pass these options to the linker". We can use either gcc or ld to link, but we need to pick one. If we use ld, we will also need to use 'gcc -m32 -print-file-name=libc.a', since ld cannot find libgcc on its own. -Hollis