From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ix7F7-0005FB-Ub for mharc-grub-devel@gnu.org; Tue, 27 Nov 2007 15:41:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ix7F6-0005Ey-T1 for grub-devel@gnu.org; Tue, 27 Nov 2007 15:41:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ix7F4-0005Em-Ga for grub-devel@gnu.org; Tue, 27 Nov 2007 15:41:15 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ix7F4-0005Ej-9z for grub-devel@gnu.org; Tue, 27 Nov 2007 15:41:14 -0500 Received: from mailout11.sul.t-online.de ([194.25.134.85] helo=mailout11.sul.t-online.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ix7F3-0004Vy-T5 for grub-devel@gnu.org; Tue, 27 Nov 2007 15:41:14 -0500 Received: from fwd34.aul.t-online.de by mailout11.aul.t-online.de with smtp id 1Ix7F2-0003rO-01; Tue, 27 Nov 2007 21:41:12 +0100 Received: from [10.3.2.2] (bpq1ZvZSoh3pJZ6rn+LBekX0VGH-3cvcJgE-2HdYfA-Ad3lOmzLTwZaJ6cWMCy3QRb@[217.235.210.139]) by fwd34.aul.t-online.de with esmtp id 1Ix7Ej-0EDrqS0; Tue, 27 Nov 2007 21:40:53 +0100 Message-ID: <474C80D7.3030202@t-online.de> Date: Tue, 27 Nov 2007 21:40:55 +0100 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: The development of GRUB 2 References: <20071118104737.GA8445@thorin> <87mytbpw8l.fsf@xs4all.nl> <20071127115735.GA15293@thorin> <1196184056.2453.7.camel@dv> In-Reply-To: <1196184056.2453.7.camel@dv> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ID: bpq1ZvZSoh3pJZ6rn+LBekX0VGH-3cvcJgE-2HdYfA-Ad3lOmzLTwZaJ6cWMCy3QRb X-TOI-MSGID: 651a60e1-52f3-4a62-95aa-56bab69e4591 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: objcopy fix (for x86_64) 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, 27 Nov 2007 20:41:17 -0000 Pavel Roskin wrote: > On Tue, 2007-11-27 at 12:57 +0100, Robert Millan wrote: > >>>> * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Pass `--only-section=.text' >>>> to objcopy. >>>> >>> Looks fine to me. >>> >> Uhm actually, I suppose one would need this argument in two separate places >> (the test, and the real thing), which I missed. >> > > It won't work "in the real thing". There are more sections than > just .text that need to be preserved. > > In any case, it will be in the yet to be written conf/x86_64-pc.mk > > We need to find the real reason behind grub_PROG_OBJCOPY_ABSOLUTE and > relax the test to only find the original problem without impeding new > ports. > > The reason for the failing objcopy test may be an unsupported or unsuitable "-N" linker option. The linker possibly adds constant bytes to some section. Examining the builtin linker script ("ld -N --verbose") may be helpful to track down the problem. If this script does not work, it can be replaced by a target specific version selected by configure. See "[PATCH] Build on Cygwin" for a working example. Christian