From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VnigA-0005MK-54 for mharc-grub-devel@gnu.org; Tue, 03 Dec 2013 00:37:50 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnig2-0005M2-SJ for grub-devel@gnu.org; Tue, 03 Dec 2013 00:37:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vnifx-0006K4-HE for grub-devel@gnu.org; Tue, 03 Dec 2013 00:37:42 -0500 Received: from mail-ee0-x229.google.com ([2a00:1450:4013:c00::229]:55987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnifx-0006K0-AZ for grub-devel@gnu.org; Tue, 03 Dec 2013 00:37:37 -0500 Received: by mail-ee0-f41.google.com with SMTP id t10so1190088eei.28 for ; Mon, 02 Dec 2013 21:37:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=uJCrHjf1rWR1+/QqujxO0ytaDASwjFXy5wXMICGR0ts=; b=T1bfl+MUuGkDBnKAm3tWEjsMViNjTdejpYxj8Y7gNu8UykuzXPA1E/4m5BbVH2S8Hf 6TMfiOJwh6D5zFyNgccImZRDDn5/m7oE3dhwuzF+j/zwZ/ffx3c4K9v2wXSqpyMM7/tX cL/06EfbzWFgcciaiPxncAgAtxNemK0P7pfM7TkWE7m8/6dwGhC/IR14PlavRcH92GEm vjXVMdIq5IxgxeJ06eq5lRx23Vvs/pQyodzNud7gjhHmUl4i4iZjYAHRJqIGMzOq/nQ6 NWq9oTyyntdYwd5iychCQluoMMj12hB020q1JHsEhoMyCZo04qShp9d/c6svcDsYrWIS O2vg== X-Received: by 10.14.221.193 with SMTP id r41mr971089eep.92.1386049055944; Mon, 02 Dec 2013 21:37:35 -0800 (PST) Received: from [192.168.1.16] (85-188.196-178.cust.bluewin.ch. [178.196.188.85]) by mx.google.com with ESMTPSA id 4sm65999269eed.14.2013.12.02.21.37.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Dec 2013 21:37:35 -0800 (PST) Message-ID: <529D6E1D.3010806@gmail.com> Date: Tue, 03 Dec 2013 06:37:33 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: The development of GNU GRUB Subject: Re: [PATCH, RFC, RFT] ARM relocation fixes References: <529AD1E8.8010305@gmail.com> <20131202105330.GA24997@rocoto.smurfnet.nu> <529C6820.9090902@gmail.com> <20131202112846.GC24997@rocoto.smurfnet.nu> <529C7305.5070002@gmail.com> <20131202133051.GE24997@rocoto.smurfnet.nu> <529CC74C.2060903@gmail.com> <20131202194020.GN24997@rocoto.smurfnet.nu> <529CE7DF.6000906@gmail.com> <20131202204622.GO24997@rocoto.smurfnet.nu> In-Reply-To: <20131202204622.GO24997@rocoto.smurfnet.nu> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2DASBGCKQUILJOIMNWVBW" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c00::229 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Tue, 03 Dec 2013 05:37:48 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2DASBGCKQUILJOIMNWVBW Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 02.12.2013 21:46, Leif Lindholm wrote: > On Mon, Dec 02, 2013 at 09:04:47PM +0100, Vladimir '=CF=86-coder/phcode= r' Serbinenko wrote: >>>>> My default ARMv7 UEFI build fails to grub-install with >>>>> /work/local/grub/uefi/sbin/grub-install: error: bl/b.w targettting = ARM. >>>> >>>> This is a problem because of asm functions which are always ARM and = gcc >>>> uses bl to jump to them from thumb that an't be satisified. I wonder= if >>>> it's better to add veneers to mkimage or to add explicit thumb inter= work >>>> to all asm functions like I did in my other patch. >>> >>> Ah. When linking with a standalone linker, it rewrites BL to BLX wher= e >>> this is required for state change >> >> Doesn't this require Thumb2 ? >=20 > No, BLX immediate has been supported since ARMv5T. > (Yes, that is effectively a 32-bit encoding in what is a 16-bit > instruction set - but so is the basic BL.) >=20 I've looked through encoding of those instructions and see how much it's a mess. b* and b*x don't have similar set of options which makes validating them a difficult error-prone task. So I think, I'll just add veneers to mkimage, just like we do on ia64 (either by making a pc-relative variant of veneers or adding fixup for them) > / > Leif >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 ------enig2DASBGCKQUILJOIMNWVBW 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.15 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlKdbh0ACgkQmBXlbbo5nOuSnAD/ZaPObY6hoLQWehxbtmQvNMvt nX3cS/7AIMbiaD2Zr38A/0jg2Dpr9w/kIijJBFN/PPvyHcM0nCE0FRzRDsSVCUA0 =DD+I -----END PGP SIGNATURE----- ------enig2DASBGCKQUILJOIMNWVBW--