From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1POGoM-0001YQ-L3 for mharc-grub-devel@gnu.org; Thu, 02 Dec 2010 16:35:30 -0500 Received: from [140.186.70.92] (port=45148 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POGoK-00013Q-Nh for grub-devel@gnu.org; Thu, 02 Dec 2010 16:35:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POGiS-0002wB-4x for grub-devel@gnu.org; Thu, 02 Dec 2010 16:29:25 -0500 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:56493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POGiR-0002vv-Vz for grub-devel@gnu.org; Thu, 02 Dec 2010 16:29:24 -0500 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1POGiP-0000i6-Sd for grub-devel@gnu.org; Thu, 02 Dec 2010 21:29:22 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1POGiO-00066v-00; Thu, 02 Dec 2010 21:29:20 +0000 Date: Thu, 2 Dec 2010 21:29:20 +0000 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20101202212920.GX21862@riva.ucam.org> References: <4CF66EFE.4030400@gmail.com> <4CF7B02F.1020105@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Need --divide flag for assembly of startup.S on some platforms X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2010 21:35:29 -0000 On Thu, Dec 02, 2010 at 01:15:10PM -0800, Seth Goldberg wrote: > When assembling grub-core/kern/i386/pc/startup.S, gas on some platforms > chokes on this line: > > movl $((LOCAL(bypass_table_end) - LOCAL(bypass_table)) / 2), %ecx > > Because on non i386-linux targets, '/' is used as a comment delimiter > for compatibility purposes. This can be overridden with the --divide > switch. > > Since the default for gas on these platforms is to use he division > operator as a comment delimiter, the "-Wa,--divide" flags need to be > passed on the gcc command line when assembling such files. Can we just use >> 1 instead? -- Colin Watson [cjwatson@ubuntu.com]