From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZFoJZ-0004P8-SV for mharc-grub-devel@gnu.org; Thu, 16 Jul 2015 14:55:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFoJX-0004O6-Jm for grub-devel@gnu.org; Thu, 16 Jul 2015 14:55:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFoJS-0003gJ-Au for grub-devel@gnu.org; Thu, 16 Jul 2015 14:55:23 -0400 Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:33290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFoJS-0003fx-30 for grub-devel@gnu.org; Thu, 16 Jul 2015 14:55:18 -0400 Received: by laem6 with SMTP id m6so48925999lae.0 for ; Thu, 16 Jul 2015 11:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type; bh=cjbEbLTgl5GZe1GiI1XVZlZRJVLyd7VrhED83Vw+qfg=; b=QlmWOSg4DmSUE5w6YQ0rWB28GUV6XE8AXWpmeptEd1pcUQhQvP3YW0WuXkprjXp821 G5NeHiuDsV83VoFZqhNlGmQopGq4VmoT9cDHmBJkI8qEpIFIfgklw9HmhD0Ib7g38gaZ Do60h7bPoL+xhwirj7RfpwaoNOfGZAWszRf/+jdL+NzMVemOW9rwCwuBH6V05O73YK0G 1bV/adyd2dIfuL2AtJbn+ApZhAF4O5Mw6aJBbZMoV9Gg9mv1UH6mwmBdzhI+FCddqbcu NjtNdRVsjwBddUd5xLlSv50+CPQAunjLjvhwn0/Fq0CwunHv0TTg1GyI1mp0I7exr7X2 EI0A== X-Received: by 10.112.140.72 with SMTP id re8mr10732527lbb.109.1437072917244; Thu, 16 Jul 2015 11:55:17 -0700 (PDT) Received: from opensuse.site (ppp91-77-243-215.pppoe.mtu-net.ru. [91.77.243.215]) by smtp.gmail.com with ESMTPSA id t1sm2233587lbb.25.2015.07.16.11.55.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 11:55:16 -0700 (PDT) Date: Thu, 16 Jul 2015 21:55:15 +0300 From: Andrei Borzenkov To: Vladimir =?UTF-8?B?J8+GLWNvZGVyL3BoY29kZXIn?= Serbinenko Subject: Re: [PATCH 1/2] Add powerpc little-endian (ppc64le) flags Message-ID: <20150716215515.6a034cbd@opensuse.site> In-Reply-To: <55A69B8F.4020105@gmail.com> References: <1435669013-3741-1-git-send-email-pfsmorigo@linux.vnet.ibm.com> <1435669013-3741-2-git-send-email-pfsmorigo@linux.vnet.ibm.com> <5592DA7A.8050107@linux.vnet.ibm.com> <20150630212856.12c56676@opensuse.site> <20150704094659.6aa48bf5@opensuse.site> <20150705203839.124984af@opensuse.site> <55A69B8F.4020105@gmail.com> X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.28; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/X2XJ_zoCHY0G_hnAqYpOf8I"; 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::22e Cc: The development of GRUB 2 , Paulo Flabiano Smorigo 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, 16 Jul 2015 18:55:24 -0000 --Sig_/X2XJ_zoCHY0G_hnAqYpOf8I Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =D0=92 Wed, 15 Jul 2015 19:42:39 +0200 Vladimir '=CF=86-coder/phcoder' Serbinenko =D0=BF=D0=B8= =D1=88=D0=B5=D1=82: >=20 > > It is possible to compile using "--target=3Dpowerpc -Wl,-EB" - this wor= ks > > on all three ppc, ppc64 and ppc64le, but this means hardcoding GNU ld > > dependency. > >=20 > Thanks for this info. > See attached patch Test has to come before asm tests (so that we are sure to compile for the right target). But real problem is that -Wl,-EB has to be added to TARGET_LDFLAGS only [ 106s] configure:24950: clang -c -v -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarati= ons -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args= -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration = -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultich= ar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Ws= witch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-lab= el -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wn= ested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes= -Wmissing-declarations -Wcast-align -Wextra -Wattributes -Wendif-labels -= Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers= -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvaria= dic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -W= missing-prototypes -Wmissing-declarations -Wformat=3D2 -target powerpc -Wl,= -EB -m32 -msoft-float -Werror -Wall -W -DGRUB_MACHINE_IEEE1275=3D1 -DGRUB= _MACHINE=3DPOWERPC_IEEE1275 conftest.c >&5 [ 106s] clang version 3.6.1 (ta= gs/RELEASE_361/final 238133) [ 106s] Target: powerpc [ 106s] Thread model: posix [ 106s] clang-3.6: error: -Wl,-EB: 'linker' input unused > > So I'd rather try to produce patch for proper support of > > -mbig-endian/-mlittle-endian (including passing it onto gcc linker) and > > until then declared clang on ppc64le having limited support (i.e. > > support for automatic detection by configure). > >=20 > I agree that this is a better approach in long term. But if we can get > some support for current tools with little work (see patch) and without > risks of breaking other tools I see no reason not to go for it in short t= erm > >=20 >=20 --Sig_/X2XJ_zoCHY0G_hnAqYpOf8I Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlWn/hMACgkQR6LMutpd94x5uACffH4LJTz7ZelQ3avtBYgnxzrh YmEAnjfGDoVB5yMuotaZny1xPbQ9Ot1w =vbd8 -----END PGP SIGNATURE----- --Sig_/X2XJ_zoCHY0G_hnAqYpOf8I--