From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Z9zuz-0005tD-AO for mharc-grub-devel@gnu.org; Tue, 30 Jun 2015 14:06:01 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9zuv-0005sY-Ld for grub-devel@gnu.org; Tue, 30 Jun 2015 14:05:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9zus-0004tj-DF for grub-devel@gnu.org; Tue, 30 Jun 2015 14:05:57 -0400 Received: from e24smtp04.br.ibm.com ([32.104.18.25]:38379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9zus-0004tZ-0o for grub-devel@gnu.org; Tue, 30 Jun 2015 14:05:54 -0400 Received: from /spool/local by e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Jun 2015 15:05:51 -0300 Received: from d24dlp02.br.ibm.com (9.18.248.206) by e24smtp04.br.ibm.com (10.172.0.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 30 Jun 2015 15:05:50 -0300 X-Helo: d24dlp02.br.ibm.com X-MailFrom: pfsmorigo@linux.vnet.ibm.com X-RcptTo: grub-devel@gnu.org Received: from d24relay02.br.ibm.com (d24relay02.br.ibm.com [9.13.184.26]) by d24dlp02.br.ibm.com (Postfix) with ESMTP id B8B391DC0057 for ; Tue, 30 Jun 2015 14:04:48 -0400 (EDT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.8.31.93]) by d24relay02.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t5UI4N0P59375760 for ; Tue, 30 Jun 2015 15:04:24 -0300 Received: from d24av02.br.ibm.com (localhost [127.0.0.1]) by d24av02.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t5UI5mko022043 for ; Tue, 30 Jun 2015 15:05:48 -0300 Received: from [9.8.9.255] ([9.8.9.255]) by d24av02.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t5UI5lJE022014 for ; Tue, 30 Jun 2015 15:05:48 -0300 Message-ID: <5592DA7A.8050107@linux.vnet.ibm.com> Date: Tue, 30 Jun 2015 15:05:46 -0300 From: Paulo Flabiano Smorigo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: [PATCH 1/2] Add powerpc little-endian (ppc64le) flags References: <1435669013-3741-1-git-send-email-pfsmorigo@linux.vnet.ibm.com> <1435669013-3741-2-git-send-email-pfsmorigo@linux.vnet.ibm.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15063018-0029-0000-0000-000003E7B4C5 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 32.104.18.25 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: Tue, 30 Jun 2015 18:05:59 -0000 On 2015-06-30 11:33, Vladimir 'phcoder' Serbinenko wrote: > What about clang? Not good news about clang support. This is what the toolchain team said about it: The -mbig-endian option was added around April 10th, 2014. Unfortunately, those who implemented it only implemented it for ARM and one other architecture. The option is currently accepted on Power systems, but does not have any affect on the code generation for Power. So, what can we do here? Maybe add a constrain in the configure file saying that it's not possible to build GRUB in a LE environment using clang. > > Le 30 juin 2015 16:30, "Andrei Borzenkov" > a écrit : > > On Tue, Jun 30, 2015 at 5:03 PM, Vladimir 'phcoder' Serbinenko > > wrote: > > Which compilers support these flags? I'm concerned of breaking > old compilers > > > > -static and -mbig-endian are listed in gcc 2.95.3 documentation for PPC. > > > Le 30 juin 2015 14:57, "Paulo Flabiano Smorigo" > > > a écrit : > >> > >> libgcc dependency was removed *just* for this target because > >> the distros that use ppc64el doesn't have 32-bit support on it. > >> > >> * configure.ac : Add targets for > powerpc64el and skip libgcc. > >> * Makefile.am: Likewise. > >> --- > >> configure.ac | 8 ++++++++ > >> 1 file changed, 8 insertions(+) > >> > >> diff --git a/configure.ac b/configure.ac > > >> index fd8a62e..0a79fad 100644 > >> --- a/configure.ac > >> +++ b/configure.ac > >> @@ -116,6 +116,7 @@ if test "x$with_platform" = x; then > >> x86_64-*) platform=pc ;; > >> powerpc-*) platform=ieee1275 ;; > >> powerpc64-*) platform=ieee1275 ;; > >> + powerpc64le-*) platform=ieee1275 ;; > >> sparc64-*) platform=ieee1275 ;; > >> mipsel-*) platform=loongson ;; > >> mips-*) platform=arc ;; > >> @@ -138,6 +139,7 @@ case "$target_cpu"-"$platform" in > >> x86_64-none) ;; > >> x86_64-*) target_cpu=i386 ;; > >> powerpc64-ieee1275) target_cpu=powerpc ;; > >> + powerpc64le-ieee1275) target_cpu=powerpc ;; > >> esac > >> > >> # Check if the platform is supported, make final adjustments. > >> @@ -601,6 +603,12 @@ if test "x$target_cpu" = xi386 && test > "x$platform" > >> != xemu; then > >> TARGET_CFLAGS="$TARGET_CFLAGS -march=i386" > >> fi > >> > >> +if test x$target_cpu = xpowerpc; then > >> + TARGET_CFLAGS="$TARGET_CFLAGS -mbig-endian" > >> + TARGET_CCASFLAGS="$TARGET_CCASFLAGS -mbig-endian" > >> + TARGET_LDFLAGS="$TARGET_LDFLAGS -static -mbig-endian" > >> +fi > >> + > >> if test "x$target_m32" = x1; then > >> # Force 32-bit mode. > >> TARGET_CFLAGS="$TARGET_CFLAGS -m32" > >> -- > >> 2.1.0 > >> > >> > >> _______________________________________________ > >> Grub-devel mailing list > >> Grub-devel@gnu.org > >> https://lists.gnu.org/mailman/listinfo/grub-devel > > > > > > _______________________________________________ > > Grub-devel mailing list > > Grub-devel@gnu.org > > https://lists.gnu.org/mailman/listinfo/grub-devel > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel > -- Paulo Flabiano Smorigo IBM Linux Technology Center