From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1L7Ypp-00065D-Rd for mharc-grub-devel@gnu.org; Tue, 02 Dec 2008 12:14:53 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7Ypo-000654-KB for grub-devel@gnu.org; Tue, 02 Dec 2008 12:14:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7Ypn-00064q-5x for grub-devel@gnu.org; Tue, 02 Dec 2008 12:14:52 -0500 Received: from [199.232.76.173] (port=60619 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7Ypn-00064n-0W for grub-devel@gnu.org; Tue, 02 Dec 2008 12:14:51 -0500 Received: from mta-out.inet.fi ([195.156.147.13]:48134 helo=kirsi1.inet.fi) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L7Ypm-0004ar-Ji for grub-devel@gnu.org; Tue, 02 Dec 2008 12:14:50 -0500 Received: from [192.168.1.102] (84.248.105.254) by kirsi1.inet.fi (8.5.014) id 48FC5AC901F8D7A7 for grub-devel@gnu.org; Tue, 2 Dec 2008 19:14:44 +0200 Message-ID: <49356D02.4060201@nic.fi> Date: Tue, 02 Dec 2008 19:14:42 +0200 From: =?UTF-8?B?VmVzYSBKw6TDpHNrZWzDpGluZW4=?= User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: The development of GRUB 2 References: <1228150293.7686.9.camel@manoel-laptop> <49341876.6070003@nic.fi> <1228152895.7686.18.camel@manoel-laptop> In-Reply-To: <1228152895.7686.18.camel@manoel-laptop> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: Quoted-Printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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 17:14:52 -0000 Manoel Rebelo Abranches wrote: > On Mon, 2008-12-01 at 19:01 +0200, Vesa J=C3=A4=C3=A4skel=C3=A4inen wro= te: >> Manoel Rebelo Abranches wrote: >>> This patch add --build-id=3Dnone option to newer ld versions when lin= king >>> kernel.elf. >>> This prevents grub-mkelfimage to behave wrongly. >> >>> if test "x$grub_cv_prog_ld_build_id_none" =3D xyes; then >>> MODULE_LDFLAGS=3D"$MODULE_LDFLAGS -Wl,--build-id=3Dnone" >>> + PPC_BUILD_ID_FLAG=3D"-Wl,--build-id=3Dnone" >>> fi >>> ]) >> How about changing that to KERNEL_LDFLAGS? Then one could use it for >> other purposes if needed? >=20 > There is already kernel_elf_LDFLAGS but its used for other architecture= s > too. 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. Isn't EFI also using ELF? I assume this would be beneficial also there.