Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vnl7z-0002QO-K1 for mharc-grub-devel@gnu.org; Tue, 03 Dec 2013 03:14:43 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnl7r-0002LI-G0 for grub-devel@gnu.org; Tue, 03 Dec 2013 03:14:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vnl7l-0004Xv-HG for grub-devel@gnu.org; Tue, 03 Dec 2013 03:14:35 -0500 Received: from mail-we0-f176.google.com ([74.125.82.176]:62244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vnl7l-0004Xm-BQ for grub-devel@gnu.org; Tue, 03 Dec 2013 03:14:29 -0500 Received: by mail-we0-f176.google.com with SMTP id w62so7335420wes.7 for ; Tue, 03 Dec 2013 00:14:28 -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=9VyfUktDmlRUOYL4mdNNCgozE6KTavT0NF2CaWyGjys=; b=Rawv+2+Mi33Cb4QXfXhV/hgN5vP7Z78oMu/rnAcasAj0wdjWe1RUydH29fMbhRMICY UoeTKdezOwNvuEIILraxa+pvXbvUtOCkfQm+BJ5dZ+zpul5KZrpfjUaM+nshNmZV43GV 9CDT6i7IkTMGZ1E0K6UmMNJzhlFlWF8FHCs4fBL/DkKARX+S4mn0txlNoI7BU9TChpPr S3qC9MVYQzsd7tr/H0uh0F1bS3o0lrJfsNVenUJDD4KDB0FTvfe3tWxl40nJgCvJ6RJo 3NVRvGr5NUKoNWEW8DQPN79JRL7o5vPIJA4L2ZttODabS4NzAL5PDdPpss5ce76kM36D tckg== X-Gm-Message-State: ALoCoQkpMiHapyAY/CBG2VNCb0B5gt8gHxA+tChggVx0r2t6Q/PvZ/J8ZPdWjC+nkPTEeeQuIE9w X-Received: by 10.194.9.100 with SMTP id y4mr56092820wja.22.1386058468567; Tue, 03 Dec 2013 00:14:28 -0800 (PST) Received: from rocoto.smurfnet.nu ([2001:4b98:dc0:41:216:3eff:fea7:75f3]) by mx.google.com with ESMTPSA id hv5sm3135109wib.2.2013.12.03.00.14.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 03 Dec 2013 00:14:27 -0800 (PST) Date: Tue, 3 Dec 2013 09:14:41 +0100 From: Leif Lindholm To: The development of GNU GRUB Subject: Re: [PATCH, RFC, RFT] ARM relocation fixes Message-ID: <20131203081441.GR24997@rocoto.smurfnet.nu> References: <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> <529D6E1D.3010806@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <529D6E1D.3010806@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: 74.125.82.176 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 08:14:41 -0000 On Tue, Dec 03, 2013 at 06:37:33AM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > 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.) > > > 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) Not B, BL. There is a 1-bit range difference between Thumb BL and BLX, which we need to check for anyway. This check already exists (and must exist) in the code. Adding veneers would be pure overhead. / Leif