]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: set ELF ABI version for ppc64x
authorAustin Clements <austin@google.com>
Thu, 18 Dec 2014 21:06:57 +0000 (16:06 -0500)
committerAustin Clements <austin@google.com>
Thu, 18 Dec 2014 22:30:56 +0000 (22:30 +0000)
commit15c67e21daee0a5055c8fc0144e7efe0345d1929
tree48171896ecc5c69a1422a4ab93e910ff2cacb0f7
parent2fc29a83ae265bba0f35e4cde44786b7e6fbd64c
cmd/ld: set ELF ABI version for ppc64x

On ppc64, there are three ELF ABI versions an ELF file can request.
Previously, we used 0, which means "unspecified".  On our test
machines, this meant to use the default (v1 for big endian and v2 for
little endian), but apparently some systems can pick the wrong ABI if
neither is requested.  Leaving this as 0 also confuses libbfd, which
confuses gdb, objdump, etc.

Fix these problems by specifying ABI v1 for big endian and v2 for
little endian.

Change-Id: I4d3d5478f37f11baab3681a07daff3da55802322
Reviewed-on: https://go-review.googlesource.com/1800
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/ld/elf.c