From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1WWVLZ-0007pt-Ap for mharc-grub-devel@gnu.org; Sat, 05 Apr 2014 14:29:41 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWVLS-0007pb-9Q for grub-devel@gnu.org; Sat, 05 Apr 2014 14:29:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWVLM-0005wj-Qz for grub-devel@gnu.org; Sat, 05 Apr 2014 14:29:34 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:60844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWVLM-0005wc-JB for grub-devel@gnu.org; Sat, 05 Apr 2014 14:29:28 -0400 Received: by mail-wi0-f175.google.com with SMTP id cc10so2970691wib.14 for ; Sat, 05 Apr 2014 11:29:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=rUtWxlRd94R7XQBVcDDiTRVAnjKH013zcZ8g18eWKzI=; b=hw8n17LPmGBt0TJYy3yGiIi3rcnd9t2pRKfaFFdD+6SvL+DJ074ePZiaqewX+6EZCF rWeLkXyReCsjqU80tFfvnZZSiywBRJeucPvY5Ng1nQjIf5Iol5zqWsuIn+pgpzMHDq7J A/pTNvGU1CqW8MwmJEpL3KwGnlr9CqYkm7LHXI6v4V55AW790E7mvyYAIhtiMRIDvEvp yROoRy+YJS7yOdn2pCniZA+cHoGsYdw6UffqxJXv2nzKbGhThcKCLs5pPoicgaZMaRGV Uxnk+xjDM5cyOF0Bw+2bBiCe2TBu45osNZdyOUYwzbkz3WpZm8eCpIchaZLSe9SUe30A FftA== X-Received: by 10.180.126.38 with SMTP id mv6mr13556906wib.46.1396722567774; Sat, 05 Apr 2014 11:29:27 -0700 (PDT) Received: from [192.168.1.16] (85-188.196-178.cust.bluewin.ch. [178.196.188.85]) by mx.google.com with ESMTPSA id h47sm28756582eey.13.2014.04.05.11.29.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Apr 2014 11:29:26 -0700 (PDT) Message-ID: <53404B84.4020509@gmail.com> Date: Sat, 05 Apr 2014 20:29:24 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.3.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [RFC PATCH 21/23] powerpc64 is not necessarily BigEndian anymore! :) 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> <20140405204916.38894747@opensuse.site> In-Reply-To: <20140405204916.38894747@opensuse.site> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vkG9lVWPBOJIvEPTOorlbVl1TVgvVaBQI" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22f 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 18:29:39 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --vkG9lVWPBOJIvEPTOorlbVl1TVgvVaBQI Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 05.04.2014 18:49, Andrey Borzenkov wrote: > =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: >=20 >> A problem is that restgpr and [al]sh[lr]di3 weren't used by any >> platform. >=20 > 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 >=20 > [ 152s] kern/powerpc/kernel_exec-dl.o: In function `grub_arch_dl_reloc= ate_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_c= lose': > [ 152s] /home/abuild/rpmbuild/BUILD/grub-2.02~beta2/build/grub-core/..= /../grub-core/disk/ieee1275/ofdisk.c:448: undefined reference to `_restgp= r_29_x' > ... >=20 >=20 Not on my system. I use GCC 4.7.2. What version do you get this with? >> Some other gcc versions probably use them. I'll need to figu= re >> out on which platforms. >=20 > Just set TARGET_LDFLAGS_STATIC_LIBGCC=3D and TARGET_LIBGCC=3D and try t= o > compile. If you intend to replace libgcc by internal implementation, > those flags are not needed anyway. >=20 >> restgpr is definitely ppc-only. >> [al]sh[lr]di3 I think was for arm. >>> >>>> For ppc only ucmpdi2 was needed actually. >>> >>> >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> https://lists.gnu.org/mailman/listinfo/grub-devel >>> >> >> >=20 >=20 >=20 > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel >=20 --vkG9lVWPBOJIvEPTOorlbVl1TVgvVaBQI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iF4EAREKAAYFAlNAS4QACgkQmBXlbbo5nOtuMQD9H/h/jMt99YAqK9kI62u6nxPc JtMHTJA/ylMTF2dVpWgBAKvoCmyDL00DxZibx9EBZClgD5cBW9FjwCMtOaFkW7Iu =BQ0z -----END PGP SIGNATURE----- --vkG9lVWPBOJIvEPTOorlbVl1TVgvVaBQI--