From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1POGuw-00056N-J4 for mharc-grub-devel@gnu.org; Thu, 02 Dec 2010 16:42:18 -0500 Received: from [140.186.70.92] (port=35159 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1POGuu-00054p-TC for grub-devel@gnu.org; Thu, 02 Dec 2010 16:42:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1POGut-0006ta-RF for grub-devel@gnu.org; Thu, 02 Dec 2010 16:42:16 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:40894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1POGut-0006tT-Lt for grub-devel@gnu.org; Thu, 02 Dec 2010 16:42:15 -0500 Received: by bwz16 with SMTP id 16so15110637bwz.0 for ; Thu, 02 Dec 2010 13:42:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :x-enigmail-version:content-type; bh=lp4JKcMfLsQF5skCcrfQERapw6YFvLJRWbH+881tFz4=; b=IqqHZt2QU4BZPlAQYQNgluOMSAUKwhRT3HWCORlDMrSR1rS/gMnbRU9cLWemPiRpMB DGfEF+/NFeCiM1kTjHj615y0/bXkTOu/En03R8km1tmYyAjcg4gc7ZwOZODi7c5KOSmf +3nzwb9z4PsRC5BYGRnAHQ2GPDoJZmEy24xrs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=MEhlqMLgXRWBDDQgUVCJqLpJcTTCEBk6qHhLC8qpB5B09CNaJ/gAIzlEwxbiRM5Zlx I6lM58uaXNQZm9U0r4LcrhU2CUP5PGff9r2wzzG/H1a+9YY6GKJnVd+HH392/ImKnqs9 vldrzIOvAstruSj2qqYkv2xOuxlEdRxGx1mW4= Received: by 10.204.68.199 with SMTP id w7mr1496201bki.17.1291326134612; Thu, 02 Dec 2010 13:42:14 -0800 (PST) Received: from debian.bg45.phnet (gprs59.swisscom-mobile.ch [193.247.250.59]) by mx.google.com with ESMTPS id v25sm544053bkt.18.2010.12.02.13.42.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 02 Dec 2010 13:42:13 -0800 (PST) Message-ID: <4CF812B2.8080209@gmail.com> Date: Thu, 02 Dec 2010 22:42:10 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 MIME-Version: 1.0 To: grub-devel@gnu.org References: <4CF66EFE.4030400@gmail.com> <4CF7B02F.1020105@gmail.com> <20101202212920.GX21862@riva.ucam.org> In-Reply-To: <20101202212920.GX21862@riva.ucam.org> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig34916689E6FFB2E5613E7311" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:42:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig34916689E6FFB2E5613E7311 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/02/2010 10:29 PM, Colin Watson wrote: > On Thu, Dec 02, 2010 at 01:15:10PM -0800, Seth Goldberg wrote: > =20 >> When assembling grub-core/kern/i386/pc/startup.S, gas on some platfo= rms=20 >> 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= =20 >> for compatibility purposes. This can be overridden with the --divide = >> switch. >> >> Since the default for gas on these platforms is to use he division=20 >> operator as a comment delimiter, the "-Wa,--divide" flags need to be=20 >> passed on the gcc command line when assembling such files. >> =20 > Can we just use >> 1 instead? > > =20 This was my first thought. But for maintenance reasons it would be better if we can make all platforms behave the same. Can we just inconditionally add -Wa,--divide to TARGET_ASFLAGS ? --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig34916689E6FFB2E5613E7311 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAkz4ErIACgkQNak7dOguQgmeGwEAmOF1Y/kCvdloQMUCZ6ioAZOh kEgBM3L/UGyx+UxTRCUA/2SI03Ak5mC4d2OtKWpY6vJdt/kt0Oqd2nGPzfUvC/Wy =inJI -----END PGP SIGNATURE----- --------------enig34916689E6FFB2E5613E7311--