From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WWTme-0004Wn-EH for mharc-grub-devel@gnu.org; Sat, 05 Apr 2014 12:49:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWTmX-0004WJ-KJ for grub-devel@gnu.org; Sat, 05 Apr 2014 12:49:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWTmS-0006mn-66 for grub-devel@gnu.org; Sat, 05 Apr 2014 12:49:25 -0400 Received: from mail-la0-x231.google.com ([2a00:1450:4010:c03::231]:64366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWTmR-0006mf-R9 for grub-devel@gnu.org; Sat, 05 Apr 2014 12:49:20 -0400 Received: by mail-la0-f49.google.com with SMTP id mc6so3422225lab.36 for ; Sat, 05 Apr 2014 09:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type; bh=MKtbUZ4SIYTl9ptrQGnhZe+RC1rm7d5hdPp+gcJ1nXg=; b=O3MEZ8KQ+YxnVYqIs2+y5LMZQImK42Rir+yOhGcJzSZ6Hwc3ibhI+Rwopr87IdDlVR nrJF3gSWrgCvUeZbP2acGsmlm83SJTAOpqlI4+43qt7+W54jztvhkXBIK8fQsOv/Pss9 YQpVHLFDfVhwxZ/LE9OoyrsMLPOacoQf1Bg5j5DoZgk7X/1llQBFhSHU0EA1bA9D4HQw b8GNuCp/SILmcrXmTqieH3hIPsEHM44Bj/H4c8Sn4B867gSktPK/TVSdfvT7L4nwUnFK Bl2sscZU1ZkiwGdCBUOQk/d5ga0zcN4sTFXSzR6HOG0udwHgBzXW60z5Lb/EfFTtRGel pyFQ== X-Received: by 10.112.171.67 with SMTP id as3mr12935493lbc.10.1396716558586; Sat, 05 Apr 2014 09:49:18 -0700 (PDT) Received: from opensuse.site (ppp37-190-15-130.pppoe.spdop.ru. [37.190.15.130]) by mx.google.com with ESMTPSA id t3sm11273863laj.15.2014.04.05.09.49.17 for (version=SSLv3 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Apr 2014 09:49:17 -0700 (PDT) Date: Sat, 5 Apr 2014 20:49:16 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [RFC PATCH 21/23] powerpc64 is not necessarily BigEndian anymore! :) Message-ID: <20140405204916.38894747@opensuse.site> In-Reply-To: <5340251A.2010309@gmail.com> References: <1393439482-20341-1-git-send-email-linuxram@us.ibm.com> <1393439482-20341-22-git-send-email-linuxram@us.ibm.com> <20140401214945.209b4894@opensuse.site> <533B1FF2.9040503@gmail.com> <20140403173336.GA16534@ram.oc3035372033.ibm.com> <20140403215356.1b953172@opensuse.site> <20140403183705.GK29218@ram.oc3035372033.ibm.com> <20140403230329.06d61900@opensuse.site> <20140403192657.GM29218@ram.oc3035372033.ibm.com> <20140403235446.2c69a649@opensuse.site> <533E5320.9070100@gmail.com> <20140404210837.6d9d2b1b@opensuse.site> <5340251A.2010309@gmail.com> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/cjz91reVF=2pIorR40DIrw8"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::231 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, 05 Apr 2014 16:49:31 -0000 --Sig_/cjz91reVF=2pIorR40DIrw8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Sat, 05 Apr 2014 17:45:30 +0200 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: > A problem is that restgpr and [al]sh[lr]di3 weren't used by any > platform. What do you mean? They are used, but resolved from -lgcc for all current platforms. Where it breaks is ppc64le where libgcc for BE does not normally exist. And without -lgcc we get [ 152s] kern/powerpc/kernel_exec-dl.o: In function `grub_arch_dl_relocate_= symbols': [ 152s] /home/abuild/rpmbuild/BUILD/grub-2.02~beta2/build/grub-core/../../= grub-core/kern/powerpc/dl.c:167: undefined reference to `_restgpr_21_x' [ 152s] disk/ieee1275/kernel_exec-ofdisk.o: In function `grub_ofdisk_close= ': [ 152s] /home/abuild/rpmbuild/BUILD/grub-2.02~beta2/build/grub-core/../../= grub-core/disk/ieee1275/ofdisk.c:448: undefined reference to `_restgpr_29_x' ... > Some other gcc versions probably use them. I'll need to figure > out on which platforms. Just set TARGET_LDFLAGS_STATIC_LIBGCC=3D and TARGET_LIBGCC=3D and try to compile. If you intend to replace libgcc by internal implementation, those flags are not needed anyway. > restgpr is definitely ppc-only. > [al]sh[lr]di3 I think was for arm. > >=20 > >> For ppc only ucmpdi2 was needed actually. > >=20 > >=20 > >=20 > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > >=20 >=20 >=20 --Sig_/cjz91reVF=2pIorR40DIrw8 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlNANAwACgkQR6LMutpd94w0jwCgghPiEwIA6rTyZmoeGsdNa2D8 7FsAoIJ17sSV4VKxBgN8zHSJm0pMQ3cw =hhJ3 -----END PGP SIGNATURE----- --Sig_/cjz91reVF=2pIorR40DIrw8--