From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aEfn3-0001EJ-QD for mharc-grub-devel@gnu.org; Thu, 31 Dec 2015 11:09:25 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEfn1-0001Dz-NV for grub-devel@gnu.org; Thu, 31 Dec 2015 11:09:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEfn0-00008Y-KX for grub-devel@gnu.org; Thu, 31 Dec 2015 11:09:23 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:38687) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEfn0-00008R-E0 for grub-devel@gnu.org; Thu, 31 Dec 2015 11:09:22 -0500 Received: by mail-wm0-x229.google.com with SMTP id b14so87154436wmb.1 for ; Thu, 31 Dec 2015 08:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type; bh=PVQ9tC+ru2pq1qKk8rsXuweF/lk6pKeHlQG7bMLmc4E=; b=LtxmkMFNUcjwtber/VoLsMIeIFSldt0/mt1FSOYn2UAOxaETka39VfHkcXhULCrW4T juYmzcYOFxqiT/86J8Ntch1GiQi/0VZXrOZWZ/+bEWn+vRntM/S+9n4Qxq6KFUS/YaZT Vf7eTRHlu4x/btV8Zwdydv3nzGlyr6ADHGFf2kgPVGKHdkVbHx2AKlTYUY4vHyEjT0wL ov5CPEGT06Xe/UYVokI5zcZehdtsReiqkC1UtMQSY45xXOc/CKyJqylO35wSqYpl2Pi1 MKiYZCxWpM/ZpVkk3QWQN5LZrzscKP5j/eDwfElWA+Wxglu3twHWpb0U9Q9sEycPVWg+ LAew== X-Received: by 10.28.87.135 with SMTP id l129mr46994244wmb.9.1451578161893; Thu, 31 Dec 2015 08:09:21 -0800 (PST) Received: from ?IPv6:2a02:120b:2c2b:b80:a2a8:cdff:fe64:b3b5? ([2a02:120b:2c2b:b80:a2a8:cdff:fe64:b3b5]) by smtp.gmail.com with ESMTPSA id az6sm69943387wjc.25.2015.12.31.08.09.20 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 Dec 2015 08:09:20 -0800 (PST) Subject: Re: [PATCH] arm64: build with -mcmodel=large To: grub-devel@gnu.org References: <20151224041420.GA26276@riva.ucam.org> <20151224042029.GC26276@riva.ucam.org> <20151225181855.GU25034@bivouac.eciton.net> From: =?UTF-8?Q?Vladimir_'=cf=86-coder/phcoder'_Serbinenko?= Message-ID: <56855328.8060606@gmail.com> Date: Thu, 31 Dec 2015 17:09:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151225181855.GU25034@bivouac.eciton.net> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="q5QMWp5qreu2VG7aeJ1EM0Pnj0qlLR2JM" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::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: Thu, 31 Dec 2015 16:09:24 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --q5QMWp5qreu2VG7aeJ1EM0Pnj0qlLR2JM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 25.12.2015 19:18, Leif Lindholm wrote: > On Thu, Dec 24, 2015 at 04:20:29AM +0000, Colin Watson wrote: >> On Thu, Dec 24, 2015 at 04:14:20AM +0000, Colin Watson wrote: >>> This fixes a build failure with very current GCC versions, such as th= e one >>> in Ubuntu xenial. Leif (or anyone with suitable arm64 systems), woul= d you >>> mind testing that this doesn't break things? I've tested that it bui= lds >>> cleanly now, but I don't have a particularly convenient way to do any= >>> run-time tests. >> >> Never mind, I spoke too soon and withdraw this patch, since this doesn= 't >> actually fix the problem, which is: >> >> $ obj/grub-efi-arm64/grub-mkimage -O arm64-efi -o test.efi -d obj/gr= ub-efi-arm64/grub-core -p /boot/grub -v ext2 >> obj/grub-efi-arm64/grub-mkimage: info: the total module size is 0x37= e8. >=20 > *snip* >=20 >> obj/grub-efi-arm64/grub-mkimage: info: dealing with the relocation s= ection .rela.text for .text. >> obj/grub-efi-arm64/grub-mkimage: error: relocation 0x113 is not impl= emented yet. >> >> Would anyone arm64-knowledgeable mind taking a look at this? >=20 > So, it seems this toolchain generates the HI21/LO12 relocation combo: > - R_AARCH64_ADR_PREL_PG_HI21/R_AARCH64_ADR_PREL_PG_HI21_NC > - R_AARCH64_LDST16_ABS_LO12_NC > - R_AARCH64_LDST32_ABS_LO12_NC > - R_AARCH64_LDST64_ABS_LO12_NC > - R_AARCH64_LDST128_ABS_LO12_NC >=20 > So I'll implement support for these. >=20 relocations 264, 266, 268, 269 are also missing > With regards to your -mcmodel=3Dlarge patch - that didn't change > anything because I already hardcoded that into > conf/Makefile.common. Your suggested patch is probably the better way > of doing it - so do consider pushing that anyway (dropping the > Makefile.common stanza at the same time). >=20 > / > Leif >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 --q5QMWp5qreu2VG7aeJ1EM0Pnj0qlLR2JM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREKAAYFAlaFUygACgkQmBXlbbo5nOssAQEAnHk2fSkBrF5+mTop4kYmTade tvq/IdW9MytSQQVf7LEBAI9CUKCNUJyzNsHWHFIgyODIw2AJExh5pQsVcwarOM8h =uKJK -----END PGP SIGNATURE----- --q5QMWp5qreu2VG7aeJ1EM0Pnj0qlLR2JM--