From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1POGuT-0004mW-CV for mharc-grub-devel@gnu.org; Thu, 02 Dec 2010 16:41:49 -0500 Received: from [140.186.70.92] (port=34927 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POGuR-0004lD-Bb for grub-devel@gnu.org; Thu, 02 Dec 2010 16:41:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POGuQ-0006lf-A2 for grub-devel@gnu.org; Thu, 02 Dec 2010 16:41:47 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]:19041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POGuQ-0006lZ-4E for grub-devel@gnu.org; Thu, 02 Dec 2010 16:41:46 -0500 Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oB2LffQw027706 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 2 Dec 2010 21:41:43 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oB2Jf8xs018166 for ; Thu, 2 Dec 2010 21:41:41 GMT Received: from abhmt021.oracle.com by acsmt354.oracle.com with ESMTP id 838919881291326037; Thu, 02 Dec 2010 13:40:37 -0800 Received: from [10.1.48.74] (/10.1.48.74) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 02 Dec 2010 13:40:37 -0800 Message-ID: <4CF8121D.6000507@oracle.com> Date: Thu, 02 Dec 2010 13:39:41 -0800 From: Seth Goldberg User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.2.12) Gecko/20101108 Thunderbird/3.1.6 MIME-Version: 1.0 To: The development of GNU GRUB References: <4CF66EFE.4030400@gmail.com> <4CF7B02F.1020105@gmail.com> <20101202212920.GX21862@riva.ucam.org> In-Reply-To: <20101202212920.GX21862@riva.ucam.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:41:48 -0000 On 12/ 2/10 01:29 PM, Colin Watson wrote: > 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? Sure, that works for me :). --S