From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Vwz88-0006nO-Ui for mharc-grub-devel@gnu.org; Sat, 28 Dec 2013 14:01:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwz7z-0006nH-4w for grub-devel@gnu.org; Sat, 28 Dec 2013 14:00:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vwz7q-0007va-Ln for grub-devel@gnu.org; Sat, 28 Dec 2013 14:00:51 -0500 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:43048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwz7q-0007vU-8w for grub-devel@gnu.org; Sat, 28 Dec 2013 14:00:42 -0500 Received: by mail-la0-f44.google.com with SMTP id ep20so4923888lab.31 for ; Sat, 28 Dec 2013 11:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:in-reply-to:references:content-type :mime-version; bh=IP96Q253bRQjSLADb8s9tOq6vLTjCVvQp4XeybtMAVg=; b=xPsqBP5PmlFtzH8M2LwRPRRzRTb/OaaEftjy+pRahdk/K7QDWHx9PJEsLZsUEXAPus VN5m2HMtbM4WIJ1I+bS2bXe3gxbCceozrGO4tl9UnJiEup7J4U13rVEJddk7JYKRwArb w9vqZOnLVxHjd20b02scbhy1VBp0HAxWrtzm/QRvxWHWGSWO1nw8q0pEO8/y8U4T8YwX jV6OlEF5i9rEy8NfBp687zJQkQiGg567WS5Ibi35jNIGXdflu72zrFEF7NdU9MkfSCEF PuRit7bur0fEAVE+zr37AF10lLeCOgoBBIuevpjkLdxEEsvSj6sgkrSaY9DhX8gsPEvc MOQA== X-Received: by 10.112.219.99 with SMTP id pn3mr22360744lbc.24.1388257241091; Sat, 28 Dec 2013 11:00:41 -0800 (PST) Received: from [192.168.1.44] (ppp91-76-134-134.pppoe.mtu-net.ru. [91.76.134.134]) by mx.google.com with ESMTPSA id y11sm23894961lbm.13.2013.12.28.11.00.39 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sat, 28 Dec 2013 11:00:40 -0800 (PST) Message-ID: <1388257239.918.92.camel@opensuse.site> Subject: Re: aarch64: relocation 0x105 is not implemented yet. From: Andrey Borzenkov To: grub-devel@gnu.org Date: Sat, 28 Dec 2013 23:00:39 +0400 In-Reply-To: <1388252883.918.88.camel@opensuse.site> References: <1388171255.918.80.camel@opensuse.site> <52BF0657.806@gmail.com> <1388252883.918.88.camel@opensuse.site> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-3ez75w1sUXpgokY519sC" X-Mailer: Evolution 3.10.2 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22c 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: Sat, 28 Dec 2013 19:00:59 -0000 --=-3ez75w1sUXpgokY519sC Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=92 =D0=A1=D0=B1, 28/12/2013 =D0=B2 21:48 +0400, Andrey Borzenkov =D0=BF= =D0=B8=D1=88=D0=B5=D1=82: > =D0=92 =D0=A1=D0=B1, 28/12/2013 =D0=B2 18:11 +0100, Vladimir '=CF=86-code= r/phcoder' Serbinenko > =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > On 27.12.2013 20:07, Andrey Borzenkov wrote: > > > I tried to build RPM for aarch64; it fails building image with > > >=20 > > > [ 1273s] + ./grub-mkimage -O arm64-efi -o grub.efi --prefix=3D -d > > > grub-core all_video boot cat chain configfile echo efinet font gfxmen= u > > > gfxterm gzio halt iso9660 jpeg minicmd normal part_apple part_msdos > > > part_gpt password_pbkdf2 png reboot search search_fs_uuid search_fs_f= ile > > > search_label sleep test video fat loadenv linux ext2 btrfs ext2 xfs j= fs > > > reiserfs efinet tftp mdraid09 mdraid1x lvm > > > [ 1273s] ./grub-mkimage: error: relocation 0x105 is not implemented y= et. > > >=20 > > This shouldn't happen as those relocation assume 32-bit range. Is > > -mcmodel=3Dlarge properly passed? >=20 > Looks like some files are compiled without it >=20 > [ 992s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W > -I../../include -I../include -DGRUB_MACHINE_EFI=3D1 > -DGRUB_MACHINE=3DARM64_EFI -nostdinc > -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=3D > \"lib/setjmp.S\" -I. -I../../grub-core -I.. -I../.. -I../../include > -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -g > -DGRUB_FILE=3D\"lib/setjmp.S\" -I. -I../../grub-core -I.. -I../.. > -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ > -DASM_FILE=3D1 -fno-strict-aliasing -fno-inline-functions-called-once > -MT lib/setjmp_module-setjmp.o -MD -MP -MF > lib/.deps-core/setjmp_module-setjmp.Tpo -c -o lib/setjmp_module-setjmp.o > `test -f 'lib/setjmp.S' || echo '../../grub-core/'`lib/setjmp.S >=20 > [ 1161s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W > -I../../include -I../include -DGRUB_MACHINE_EFI=3D1 > -DGRUB_MACHINE=3DARM64_EFI -nostdinc > -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=3D > \"kern/arm64/efi/startup.S\" -I. -I../../grub-core -I.. -I../.. > -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ > -DGRUB_KERNEL=3D1 -g -DGRUB_FILE=3D\"kern/arm64/efi/startup.S\" -I. > -I../../grub-core -I.. -I../.. -I../../include -I../include > -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=3D1 > -fno-strict-aliasing -fno-inline-functions-called-once -MT > kern/arm64/efi/kernel_exec-startup.o -MD -MP -MF > kern/arm64/efi/.deps-core/kernel_exec-startup.Tpo -c -o > kern/arm64/efi/kernel_exec-startup.o `test -f 'kern/arm64/efi/startup.S' > || echo '../../grub-core/'`kern/arm64/efi/startup.S >=20 > [ 1163s] gcc -DHAVE_CONFIG_H -I. -I../../grub-core -I.. -Wall -W > -I../../include -I../include -DGRUB_MACHINE_EFI=3D1 > -DGRUB_MACHINE=3DARM64_EFI -nostdinc > -isystem /usr/lib64/gcc/aarch64-suse-linux/4.8/include -DGRUB_FILE=3D > \"kern/arm64/cache_flush.S\" -I. -I../../grub-core -I.. -I../.. > -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ > -DGRUB_KERNEL=3D1 -g -DGRUB_FILE=3D\"kern/arm64/cache_flush.S\" -I. > -I../../grub-core -I.. -I../.. -I../../include -I../include > -I../../grub-core/lib/libgcrypt-grub/src/ -DASM_FILE=3D1 > -fno-strict-aliasing -fno-inline-functions-called-once -MT > kern/arm64/kernel_exec-cache_flush.o -MD -MP -MF > kern/arm64/.deps-core/kernel_exec-cache_flush.Tpo -c -o > kern/arm64/kernel_exec-cache_flush.o `test -f 'kern/arm64/cache_flush.S' > || echo '../../grub-core/'`kern/arm64/cache_flush.S >=20 >=20 Still the same even after adding -mcmodel=3Dlarge to CCASFLAGS. Is it possible that compiler generates small relocation where appropriate even with -mcmodel=3Dlarge? --=-3ez75w1sUXpgokY519sC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEABECAAYFAlK/H9cACgkQR6LMutpd94w3GACgtkAyinEJPzajKck+eWQH/nC2 HhEAnjUMZWpEUTAeDcsqOOEoArqfKDaQ =XKe3 -----END PGP SIGNATURE----- --=-3ez75w1sUXpgokY519sC--