Bug 1290657

Summary: Cross binutils for powerpc lacks little-endian targets
Product: [Fedora] Fedora Reporter: David Gibson <dgibson>
Component: cross-binutilsAssignee: David Howells <dhowells>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 23CC: dan, dhowells
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-11 05:14:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Gibson 2015-12-11 05:03:06 UTC
Description of problem:

Although powerpc is traditionally a big-endian architecture, CPUs have actually supported both endian modes for some time.  At least on IBM servers, little-endian is now the encouraged mode of operation.

However, the cross binutils for powerpc targets only includes the emulations for big-endian powerpc.

Version-Release number of selected component (if applicable):

binutils-powerpc64-linux-gnu-2.25-5.fc23.x86_64

How reproducible:

100%

Steps to Reproduce:
1. $ powerpc64-linux-gnu-ld -V

Actual results:

$ powerpc64-linux-gnu-ld -V
GNU ld version 2.25-5.fc23
  Supported emulations:
   elf64ppc
   elf32ppc
   elf32ppclinux
   elf32ppcsim


Expected results:

Something closer to the output on a native ld on a ppc64le system:

$ uname -a
Linux ibm-p8-virt-01.lab.bos.redhat.com 3.10.0-334.el7_BZ1287474test2.ppc64le #1 SMP Tue Dec 8 13:11:56 EST 2015 ppc64le ppc64le ppc64le GNU/Linux
$ ld -V
GNU ld version 2.23.52.0.1-55.el7 20130226
  Supported emulations:
   elf64lppc
   elf32lppc
   elf32lppclinux
   elf32lppcsim
   elf32_spu
   elf32ppclinux
   elf32ppc
   elf32ppcsim
   elf64ppc


Additional info:

Comment 1 David Gibson 2015-12-11 05:14:18 UTC
Sorry, never mind.

Looks like a fix is already there in brew, just hasn't made it to the repositories yet.

Given that powerpc native binutils is configured to include both BE and LE targets, it's not clear that having separate cross-binutils packages for BE and LE targets is the best choic, though.