From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aMgDB-0004Hx-Hj for mharc-grub-devel@gnu.org; Fri, 22 Jan 2016 13:13:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55078) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMgD7-0004Fh-LT for grub-devel@gnu.org; Fri, 22 Jan 2016 13:13:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMgD6-0007qA-BN for grub-devel@gnu.org; Fri, 22 Jan 2016 13:13:25 -0500 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]:34575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMgD6-0007q5-4T for grub-devel@gnu.org; Fri, 22 Jan 2016 13:13:24 -0500 Received: by mail-wm0-x234.google.com with SMTP id u188so28625759wmu.1 for ; Fri, 22 Jan 2016 10:13:24 -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=juTg4ur7w0XCM2s8vQIMvRT/rNM3vugrX8ZGvvDn3Cc=; b=w3Vut/jg5WfViMK83N0nIB7TBUrObVxGKrcgvS7n4M9XstrMswXbYW+UylF7pVSth9 l7wxex9awTwx3qKdduzDbt6r3O0RLkjsbV8VOv9EWvgrR1QgHhykCYNE4nrLTAdTSHyH 9Vutx1+8rXlWZOxzBnut+BEZlqrpJNSzp+00ePpkSqnJzhEh1qyl0auPtVq0EAerEmw2 5h9tjfFqtmbMuEAeVjC1sRCtM+OV8GnynP8Of77xG4xzcONVmo+/ERnTsljUM1EEuj9v dqLYKK4wnzo4/8Pg7IGTB7XPg+pRO0HMQCvszGn+hsAPRuqWIo65lBNEPOEIQrI4xfs9 CVwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-type; bh=juTg4ur7w0XCM2s8vQIMvRT/rNM3vugrX8ZGvvDn3Cc=; b=Irmm7JQCW755Y7HUcdA9/ARsb/TeprpeFldGptwOCF4s/H8+N7oK4pKFZyXfNkRBji wTAhOsLwRpmf/KqKY5YLt7g5Bg9HqXp3qDV/4sx8mnTESKO8x8ORqkvtWbbfiajHvwY0 YD809s8UwQAJJlN7Lvs8v3eczQrYNYyOndJ8tV3zsbeNShF5n8ERTaRKJJPc0rN0UkiA AI6X94NN7+hwArQKYoAGTqYrbHBHULrmV+5QSfkv0cR1dWHe2dscotzujM0rjxnvJoI3 A9m4iGUpwNY/bTQ98gg6oDKRuQY+fYEBMVkYTT4+y7jZ+q3Z134dfIZw640s4EPFj/a2 hjgw== X-Gm-Message-State: AG10YORsVMggGDdjnDAVV+RJWkQIfKYj7Ct0FsjmKTHYj3yyp0snge1WlgdygQShfXivug== X-Received: by 10.28.24.85 with SMTP id 82mr5182343wmy.58.1453486403331; Fri, 22 Jan 2016 10:13:23 -0800 (PST) Received: from ?IPv6:2a02:120b:2c41:63f0:a2a8:cdff:fe64:b3b5? ([2a02:120b:2c41:63f0:a2a8:cdff:fe64:b3b5]) by smtp.gmail.com with ESMTPSA id ql10sm6997199wjc.23.2016.01.22.10.13.21 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jan 2016 10:13:21 -0800 (PST) Subject: Re: [PATCH] arm64: build with -mcmodel=large To: The development of GNU GRUB References: <20151224041420.GA26276@riva.ucam.org> <20151224042029.GC26276@riva.ucam.org> <20151225181855.GU25034@bivouac.eciton.net> <20160122021433.GA17123@riva.ucam.org> From: =?UTF-8?Q?Vladimir_'=cf=86-coder/phcoder'_Serbinenko?= Message-ID: <56A27138.60302@gmail.com> Date: Fri, 22 Jan 2016 19:13:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <20160122021433.GA17123@riva.ucam.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CItsKNDE73TKW7Ueus10dHIFtU5k38cwU" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::234 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: Fri, 22 Jan 2016 18:13:26 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --CItsKNDE73TKW7Ueus10dHIFtU5k38cwU Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 22.01.2016 03:14, Colin Watson wrote: > On Fri, Dec 25, 2015 at 06:18:55PM +0000, Leif Lindholm wrote: >> 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 >> >> So I'll implement support for these. >=20 > I found a temporary workaround for this via > https://bugs.launchpad.net/bugs/1533009, which refers to > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D63304; given that set of= > clues, I've confirmed that TARGET_CFLAGS=3D'-Os > -mpc-relative-literal-loads' fixes my build for the time being. >=20 > This isn't necessarily a good solution for upstream, because only > certain versions of GCC support it (although perhaps we could detect it= > in configure.ac until such time as appropriate relocation support is > added?), but I'm mentioning it here in case any other distributors have= > the same problem. >=20 I have implemented and committed the support for needed relocations --CItsKNDE73TKW7Ueus10dHIFtU5k38cwU 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 iF4EAREKAAYFAlaicTgACgkQmBXlbbo5nOuWkQD/ahpNg3OloFWkGzXi1hR0ve/W u+H0T8Rq6YKM+c7xSSkA/R2GtWLCSfRQpvgeBd0NK0Qz8LdR8AjSgBwePuST3GtL =IMkF -----END PGP SIGNATURE----- --CItsKNDE73TKW7Ueus10dHIFtU5k38cwU--