]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj: print relocation type by name in -S output
authorCherry Mui <cherryyz@google.com>
Thu, 8 Jun 2023 02:28:20 +0000 (22:28 -0400)
committerCherry Mui <cherryyz@google.com>
Thu, 20 Jul 2023 19:42:11 +0000 (19:42 +0000)
commit5f9412911b7ba96b31f0924d66190b242cff334d
treed24dfff187f1439f27e77d0c39220de4aa2dccca
parent66c8410c7331edc2762bae3babb58e6e715eb066
cmd/internal/obj: print relocation type by name in -S output

The compiler/assembler's -S output prints relocation type
numerically, which is hard to understand. Every time I need to
count the relocation type constants to figure out which relocation
it actually is. Print the symbolic name instead.

Change-Id: I4866873bbae8b3dc0ee212609cb00280f9164243
Reviewed-on: https://go-review.googlesource.com/c/go/+/501856
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
src/cmd/internal/obj/objfile.go
test/fixedbugs/issue9355.go