diff options
| author | Srinivas Pokala <Pokala.Srinivas@ibm.com> | 2024-10-29 07:33:44 +0100 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2024-11-06 21:43:43 +0000 |
| commit | eb29beb0ad83353097786cda793af8dea0b05b27 (patch) | |
| tree | dd647c29232e4c097bf902b0ed12857313ada285 /src/cmd/internal/objfile | |
| parent | 23493579ead6512185bdb7a0bdfa512e9dea813e (diff) | |
| download | go-eb29beb0ad83353097786cda793af8dea0b05b27.tar.xz | |
cmd/objdump: add s390x plan9 disasm support
This CL provides vendor support for s390x disassembler plan9 syntax.
cd $GOROOT/src/cmd
go get golang.org/x/arch@master
go mod tidy
go mod vendor
For #15255
Change-Id: I20c87510a1aee2d1cf2df58feb535974c4c0e3ef
Reviewed-on: https://go-review.googlesource.com/c/go/+/623075
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Vishwanatha HD <vishwanatha.hd@ibm.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd/internal/objfile')
| -rw-r--r-- | src/cmd/internal/objfile/disasm.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/objfile/disasm.go b/src/cmd/internal/objfile/disasm.go index 5a7d288e94..4334e88fad 100644 --- a/src/cmd/internal/objfile/disasm.go +++ b/src/cmd/internal/objfile/disasm.go @@ -421,9 +421,9 @@ func disasm_s390x(code []byte, pc uint64, lookup lookupFunc, _ binary.ByteOrder, text = "?" } else { if gnuAsm { - text = fmt.Sprintf("%s", s390xasm.GNUSyntax(inst, pc)) + text = fmt.Sprintf("%-36s // %s", s390xasm.GoSyntax(inst, pc, lookup), s390xasm.GNUSyntax(inst, pc)) } else { - text = fmt.Sprintf("%s", "Go/plan9 syntax unsupported..!!") + text = s390xasm.GoSyntax(inst, pc, lookup) } } return text, size |
