Commit 992320aa authored by Michael Munday's avatar Michael Munday Committed by Brad Fitzpatrick

cmd/internal/objfile: add s390x support

Change-Id: I39aa6569c9a6f327f7aaa01f8b4ace814fd5b766
Reviewed-on: https://go-review.googlesource.com/20943Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 49be1eba
...@@ -245,4 +245,5 @@ var byteOrders = map[string]binary.ByteOrder{ ...@@ -245,4 +245,5 @@ var byteOrders = map[string]binary.ByteOrder{
"arm": binary.LittleEndian, "arm": binary.LittleEndian,
"ppc64": binary.BigEndian, "ppc64": binary.BigEndian,
"ppc64le": binary.LittleEndian, "ppc64le": binary.LittleEndian,
"s390x": binary.BigEndian,
} }
...@@ -99,6 +99,8 @@ func (f *elfFile) goarch() string { ...@@ -99,6 +99,8 @@ func (f *elfFile) goarch() string {
return "arm" return "arm"
case elf.EM_PPC64: case elf.EM_PPC64:
return "ppc64" return "ppc64"
case elf.EM_S390:
return "s390x"
} }
return "" return ""
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment