Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MZO8O-0002bx-Oy for mharc-grub-devel@gnu.org; Fri, 07 Aug 2009 08:01:20 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MZO8N-0002bW-1S for grub-devel@gnu.org; Fri, 07 Aug 2009 08:01:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MZO8H-0002aK-Iv for grub-devel@gnu.org; Fri, 07 Aug 2009 08:01:18 -0400 Received: from [199.232.76.173] (port=46611 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MZO8H-0002aF-Dj for grub-devel@gnu.org; Fri, 07 Aug 2009 08:01:13 -0400 Received: from mx20.gnu.org ([199.232.41.8]:59748) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MZO8G-0004Y3-Re for grub-devel@gnu.org; Fri, 07 Aug 2009 08:01:13 -0400 Received: from mail-fx0-f205.google.com ([209.85.220.205]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MZO8E-0003el-Id for grub-devel@gnu.org; Fri, 07 Aug 2009 08:01:10 -0400 Received: by fxm1 with SMTP id 1so1084184fxm.31 for ; Fri, 07 Aug 2009 05:01:08 -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=F+78juh7zXjlFs4Un9YQe12aZ28YMBerkdRxFugXDGM=; b=myq4tDBClA5TH+cyEbwWWexyMEbaUeVJYJZIlYHxjEZLavVCir1pqhD6zDONAtChx0 /FrtRtwcd7ZAnsUQPI5uUrJc7PXJcb0lduGDdI1RtwqyK6K4sFV40IMDDXfSp3uuBrT0 HHN2f/R0knXvu1NZtJUe6Eb4sYCKUOWpCVn6s= 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=hFRLWATWapyLY8Kdz0Tl9KUJ8i9L/3dqKTDQzZWm5MEilqG+CH/8fRbPTaBcrh5p/x 8iVeKDJuj8g67injNTDXkZvDdyfXSthPAnQtw8ZLbYf8FPMmivy4P7GlNdHTXFcEMXhh ONZXk3eTe/KVVpBqKlLMWv06dOXgLO8RTmoi8= MIME-Version: 1.0 Received: by 10.204.72.197 with SMTP id n5mr925373bkj.151.1249646468246; Fri, 07 Aug 2009 05:01:08 -0700 (PDT) In-Reply-To: <87bpmrj2l1.fsf@xs4all.nl> References: <20090804205256.GE15811@thorin> <20090807110654.GC6695@thorin> <87bpmrj2l1.fsf@xs4all.nl> Date: Fri, 7 Aug 2009 14:01:08 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Subject: Re: [PATCH 1/2] Relocator framework 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 12:01:19 -0000 On Fri, Aug 7, 2009 at 1:16 PM, Marco Gerards wrote: > Robert Millan writes: > > [...] > >>> Apple linker can't handle 64-bit differences >> >> This seems like a bug. =A0Can GNU binutils be used on MacOS to resolve t= his? >> >> If it's workable, I'd rather make binutils a build requirement than addi= ng >> more of this (the other APPLE_CC ifdefs will probably need some review t= oo, >> but there's no hurry about that). > > Agreed. =A0GRUB is a GNU project and we can depend on GNU programs. > Especially since we use some GNU extensions. > Apple's compiler is based GCC but binutils aren't and they pose the most of problems. Actualy the most problematic bit was that I didn't know that unless you prefix variable with L_ apple's assembler treats it as global. Adding L_ in this code solves problem. Yves proposed to add a LOCAL(x) macro to symbol.h this way the assembler code is also more readable. I also did further adjustments in this patch to decrease the number of ifdefs but had no time to test it and so couldn't submit it > -- > Marco > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git