]> Cypherpunks repositories - gostls13.git/commit
cmd/objdump: fix dissasembly of Plan 9 object files
authorAnthony Martin <ality@pbrane.org>
Wed, 21 May 2014 21:24:38 +0000 (23:24 +0200)
committerDavid du Colombier <0intro@gmail.com>
Wed, 21 May 2014 21:24:38 +0000 (23:24 +0200)
commiteb34288ad17bd624cfb4f40a3ab3095698624d95
tree3b7e0670fe00e5f7331f246fa7795ab9a8ef9b8a
parentcab54408da90caac6e1f1d6eaeb4166eeb98d899
cmd/objdump: fix dissasembly of Plan 9 object files

Ignore symbols that aren't text, data, or bss since they cause
problems when dissassembling instructions with small immediate
values.

Before:
        build.go:142    0x10ee  83ec50      SUBL $text/template/parse.autotmp_1293(SB), SP

After:
        build.go:142    0x10ee  83ec50      SUBL $0x50, SP

Fixes #7947.

LGTM=rsc
R=rsc, 0intro
CC=golang-codereviews
https://golang.org/cl/93520045
src/cmd/objdump/objdump_test.go
src/cmd/objdump/plan9obj.go