Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1L8EuS-0004oz-91 for mharc-grub-devel@gnu.org; Thu, 04 Dec 2008 09:10:28 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L8EuQ-0004oC-2e for grub-devel@gnu.org; Thu, 04 Dec 2008 09:10:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L8EuO-0004nM-Kc for grub-devel@gnu.org; Thu, 04 Dec 2008 09:10:25 -0500 Received: from [199.232.76.173] (port=48180 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L8EuO-0004mx-9F for grub-devel@gnu.org; Thu, 04 Dec 2008 09:10:24 -0500 Received: from igw1.br.ibm.com ([32.104.18.24]:60705) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L8EuN-0008R9-Kq for grub-devel@gnu.org; Thu, 04 Dec 2008 09:10:24 -0500 Received: from d24relay01.br.ibm.com (unknown [9.8.31.16]) by igw1.br.ibm.com (Postfix) with ESMTP id D128132C24E for ; Thu, 4 Dec 2008 12:06:38 -0200 (BRDT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by d24relay01.br.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id mB4F9nZV2752580 for ; Thu, 4 Dec 2008 12:09:49 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id mB4EAEOt023579 for ; Thu, 4 Dec 2008 12:10:14 -0200 Received: from [9.8.0.82] ([9.8.0.82]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id mB4EADN6021018; Thu, 4 Dec 2008 12:10:14 -0200 From: Manoel Rebelo Abranches To: The development of GRUB 2 In-Reply-To: <1228242857.32248.16.camel@dv> References: <1228150293.7686.9.camel@manoel-laptop> <49341876.6070003@nic.fi> <1228152895.7686.18.camel@manoel-laptop> <49356D02.4060201@nic.fi> <1228242857.32248.16.camel@dv> Content-Type: multipart/mixed; boundary="=-Ee/g8jLvYPYnThiR54iC" Date: Thu, 04 Dec 2008 12:08:36 -0200 Message-Id: <1228399716.7319.8.camel@manoel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (tstamp-) Cc: Paulo de Rezende Pinatti Subject: Re: [PATCH] --build-id= none in newer ld versions PowerPC 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: Thu, 04 Dec 2008 14:10:26 -0000 --=-Ee/g8jLvYPYnThiR54iC Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi made a patch to add --build-id=3Dnone to TARGET_LDFLAGS instead of MODULE_LDFLAGS. with this it is passed to ld when linking kernel.elf. without this kernel.elf creates a additional LOAD segment with a virtual address in PhysAddr witch causes problem with OF and causes grub-mkelfimage to not work correctly. On Tue, 2008-12-02 at 13:34 -0500, Pavel Roskin wrote: > On Tue, 2008-12-02 at 19:14 +0200, Vesa J=C3=A4=C3=A4skel=C3=A4inen wro= te: >=20 > > No no. I mean just KERNEL_LDFLAGS like comparison to MODULE_LDFLAGS. = No > > elf or nothing like that. Is there any problem if one provides this > > setting even on x86 if linker recognizes it? (what is being tested > > here). PPC_BUILD_ID_FLAG just sounds too specific. > >=20 > > Isn't EFI also using ELF? I assume this would be beneficial also ther= e. >=20 > I agree, we should not be be multiplying hacks. There is already code > adding -Wl,--build-id=3Dnone to TARGET_LDFLAGS. It's a macro > grub_PROG_LD_BUILD_ID_NONE in aclocal.m4. What's wrong with it? Does > it fail to add -Wl,--build-id=3Dnone on PowerPC or is TARGET_LDFLAGS no= t > used to link kernel.elf? >=20 > What are the symptoms caused by not using -Wl,--build-id=3Dnone? >=20 --=20 Best Regards, Manoel Abranches IBM Linux Technology Center Brazil --=-Ee/g8jLvYPYnThiR54iC Content-Disposition: attachment; filename="build_id.patch" Content-Type: text/x-patch; name="build_id.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit Index: aclocal.m4 =================================================================== --- aclocal.m4 (revision 1933) +++ aclocal.m4 (working copy) @@ -112,7 +112,7 @@ AC_MSG_RESULT([$grub_cv_prog_ld_build_id_none]) if test "x$grub_cv_prog_ld_build_id_none" = xyes; then - MODULE_LDFLAGS="$MODULE_LDFLAGS -Wl,--build-id=none" + TARGET_LDFLAGS="$TARGET_LDFLAGS -Wl,--build-id=none" fi ]) Index: ChangeLog =================================================================== --- ChangeLog (revision 1933) +++ ChangeLog (working copy) @@ -1,3 +1,10 @@ +2008-12-04 Manoel R. Abranches + + Add --build-id=none to all ld calls instead of only the ones related + to modules. This correct a problem with grub-mkelfimage. + * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to + TARGET_LDFLAGS + 2008-11-29 Robert Millan * disk/ata.c (grub_ata_pciinit): Handle errors rised by --=-Ee/g8jLvYPYnThiR54iC--