aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objfile
diff options
context:
space:
mode:
authorLynn Boger <laboger@linux.vnet.ibm.com>2018-12-05 16:23:52 -0500
committerLynn Boger <laboger@linux.vnet.ibm.com>2018-12-06 15:28:39 +0000
commitfcd6117e9809a889974b50dad32002d3424ef6b2 (patch)
tree181f7d179a9a0b8fec73383e19353e5002f9af85 /src/cmd/internal/objfile
parent02a0827d7960d0c828fad57b11c02794dec50552 (diff)
downloadgo-fcd6117e9809a889974b50dad32002d3424ef6b2.tar.xz
cmd/internal/objfile: provide consistent output in objdump on ppc64x
This makes a change to disasm.go so it provides consistent output with the recent updates to arch/ppc64. Change-Id: I812e5da2423fd1a84406032fd91ddf9cc86b7c69 Reviewed-on: https://go-review.googlesource.com/c/152761 Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/internal/objfile')
-rw-r--r--src/cmd/internal/objfile/disasm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/objfile/disasm.go b/src/cmd/internal/objfile/disasm.go
index fce63bfeea..50fc51be87 100644
--- a/src/cmd/internal/objfile/disasm.go
+++ b/src/cmd/internal/objfile/disasm.go
@@ -357,7 +357,7 @@ func disasm_ppc64(code []byte, pc uint64, lookup lookupFunc, byteOrder binary.By
inst, err := ppc64asm.Decode(code, byteOrder)
var text string
size := inst.Len
- if err != nil || size == 0 || inst.Op == 0 {
+ if err != nil || size == 0 {
size = 4
text = "?"
} else {