]> Cypherpunks repositories - gostls13.git/commit
cmd/objdump: add support for -gnu option on Go objdump
authorLynn Boger <laboger@linux.vnet.ibm.com>
Wed, 25 Mar 2020 17:47:43 +0000 (13:47 -0400)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Mon, 30 Mar 2020 14:30:49 +0000 (14:30 +0000)
commit5a312288799c0a433e2061550ff92689b627e080
tree6d80f1c3bbdc98622747391ae237ebe68cf0b42a
parent89e13c88e4f9f3a3eea7bf105e5af475727a4c33
cmd/objdump: add support for -gnu option on Go objdump

This adds support for the -gnu option on Go objdump. When
this option is used, then output will include gnu
assembly in comments alongside the Go assembly.

The objdump test was updated to test this new option.

This option is supported for the arches found in
golang.org/x that provide the GNUsyntax function.

Updates #34372

Change-Id: I9e60e1691526607dda3c857c4564dcef408b8391
Reviewed-on: https://go-review.googlesource.com/c/go/+/225459
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/objfile/disasm.go
src/cmd/objdump/main.go
src/cmd/objdump/objdump_test.go
src/cmd/pprof/pprof.go