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: 's 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{
"arm": binary.LittleEndian,
"ppc64": binary.BigEndian,
"ppc64le": binary.LittleEndian,
"s390x": binary.BigEndian,
}
......@@ -99,6 +99,8 @@ func (f *elfFile) goarch() string {
return "arm"
case elf.EM_PPC64:
return "ppc64"
case elf.EM_S390:
return "s390x"
}
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