]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/objfile: provide consistent output in objdump on ppc64x
authorLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 5 Dec 2018 21:23:52 +0000 (16:23 -0500)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Thu, 6 Dec 2018 15:28:39 +0000 (15:28 +0000)
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>

src/cmd/internal/objfile/disasm.go

index fce63bfeeae0b931207ffce90b09b16c594a9010..50fc51be8772665f0a8918b178374c585df528ea 100644 (file)
@@ -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 {