Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1L7ajd-00052T-JY for mharc-grub-devel@gnu.org; Tue, 02 Dec 2008 14:16:37 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7ajc-00052C-71 for grub-devel@gnu.org; Tue, 02 Dec 2008 14:16:36 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7aja-000520-KV for grub-devel@gnu.org; Tue, 02 Dec 2008 14:16:34 -0500 Received: from [199.232.76.173] (port=37441 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7aja-00051x-F6 for grub-devel@gnu.org; Tue, 02 Dec 2008 14:16:34 -0500 Received: from igw1.br.ibm.com ([32.104.18.24]:50569) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7ajZ-0007Me-Tk for grub-devel@gnu.org; Tue, 02 Dec 2008 14:16:34 -0500 Received: from d24relay01.br.ibm.com (unknown [9.8.31.16]) by igw1.br.ibm.com (Postfix) with ESMTP id 6A46432C07D for ; Tue, 2 Dec 2008 17:12:52 -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 mB2KG23V3797066 for ; Tue, 2 Dec 2008 17:16:02 -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 mB2JGQX6015087 for ; Tue, 2 Dec 2008 17:16:27 -0200 Received: from [9.18.253.135] (Senigalia-009018253135.br.ibm.com [9.18.253.135]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id mB2JGQ8I015084; Tue, 2 Dec 2008 17:16:26 -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: text/plain; charset="UTF-8" Date: Tue, 02 Dec 2008 17:16:19 -0200 Message-Id: <1228245379.6267.92.camel@manoel-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1 Content-Transfer-Encoding: quoted-printable 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: Tue, 02 Dec 2008 19:16:36 -0000 The variable TARGET_LDFLAGS. isnt set but MODULE_LDFLAGS is instead. if test "x$grub_cv_prog_ld_build_id_none" =3D xyes; then MODULE_LDFLAGS=3D"$MODULE_LDFLAGS -Wl,--build-id=3Dnone" I could change to use TARGET_LDFLAGS if it wont brake other architectures. We were using PPC_BUILD_ID_FLAG because it was intended to be only to PowerPC at first. I can tell if it is needed for others architectures and if it wont brake others as well. 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