Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VnaOm-0003NG-AC for mharc-grub-devel@gnu.org; Mon, 02 Dec 2013 15:47:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnaOJ-0003Kb-11 for grub-devel@gnu.org; Mon, 02 Dec 2013 15:47:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnaNe-0006Az-3t for grub-devel@gnu.org; Mon, 02 Dec 2013 15:46:50 -0500 Received: from mail-wi0-f180.google.com ([209.85.212.180]:65376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnaNd-0006Al-UW for grub-devel@gnu.org; Mon, 02 Dec 2013 15:46:10 -0500 Received: by mail-wi0-f180.google.com with SMTP id hn9so1100970wib.7 for ; Mon, 02 Dec 2013 12:46:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=Up1IUn+kCgHeo+VfCejLc7calH9CYMGh9T+RC0bQ4Qo=; b=icLrIyGrg+QjJzWzH3iHSxhUV7TlMucwMWaIGiVfV/MGrBZrXb4uD0xdVe9rMbAGb0 gPxTKMKzH3vn+bLpoW/wNXggFLB9OeCIediIH22ilyTK5JgKQ1RoslCNlvBgHVfp7WIh fy5zqmZE+BI8VOu3/wfOVz8X+dkroEPLaEaawSN+p8oeR4ZsqX8NOernzhZZgS9xSyNJ j27PZhMUXtQOg8lQfN0JNOgTorKOKMAyD6WroTYUohjeEEkpOJgXLiBirMHVA5+g9zZQ olcZbeDbKU8EA8Yxo53t0p/a7K0z9b7fnoPk3WuXQBGo3kHxNnS9tJUxs5o21gWTbFpY U6Uw== X-Gm-Message-State: ALoCoQl4MuTuAemFI2WaV4zc5aJRY/RjTNEDb+YZ26JTxJG9qKoQwvxJAxYcvoesU1c5LZrfn8tK X-Received: by 10.194.171.34 with SMTP id ar2mr2937267wjc.81.1386017168879; Mon, 02 Dec 2013 12:46:08 -0800 (PST) Received: from rocoto.smurfnet.nu ([2001:4b98:dc0:41:216:3eff:fea7:75f3]) by mx.google.com with ESMTPSA id nb16sm125693515wic.0.2013.12.02.12.46.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 02 Dec 2013 12:46:08 -0800 (PST) Date: Mon, 2 Dec 2013 21:46:22 +0100 From: Leif Lindholm To: The development of GNU GRUB Subject: Re: [PATCH, RFC, RFT] ARM relocation fixes Message-ID: <20131202204622.GO24997@rocoto.smurfnet.nu> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <529CE7DF.6000906@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.212.180 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: Mon, 02 Dec 2013 20:47:18 -0000 On Mon, Dec 02, 2013 at 09:04:47PM +0100, Vladimir 'φ-coder/phcoder' 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 interwork > >> to all asm functions like I did in my other patch. > > > > Ah. When linking with a standalone linker, it rewrites BL to BLX where > > this is required for state change > > Doesn't this require Thumb2 ? 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.) / Leif