diff options
| author | David du Colombier <0intro@gmail.com> | 2014-01-22 23:30:52 +0100 |
|---|---|---|
| committer | David du Colombier <0intro@gmail.com> | 2014-01-22 23:30:52 +0100 |
| commit | 021c11683ca28c7e01a2eca5ccbb9b8bd34e3bc1 (patch) | |
| tree | ae64432a7c0ad51b59c3a57a09904250c6b14da0 /src/cmd/nm/nm.go | |
| parent | f7245c062668199fcb505de47d694ceaed512394 (diff) | |
| download | go-021c11683ca28c7e01a2eca5ccbb9b8bd34e3bc1.tar.xz | |
debug/plan9obj: implement parsing of Plan 9 a.out executables
It implements parsing of the header and symbol table for both
32-bit and 64-bit Plan 9 binaries. The nm tool was updated to
use this package.
R=rsc, aram
CC=golang-codereviews
https://golang.org/cl/49970044
Diffstat (limited to 'src/cmd/nm/nm.go')
| -rw-r--r-- | src/cmd/nm/nm.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/nm/nm.go b/src/cmd/nm/nm.go index fdf6ef673e..a4036184e4 100644 --- a/src/cmd/nm/nm.go +++ b/src/cmd/nm/nm.go @@ -105,6 +105,10 @@ var parsers = []struct { {[]byte("\xCE\xFA\xED\xFE"), machoSymbols}, {[]byte("\xCF\xFA\xED\xFE"), machoSymbols}, {[]byte("MZ"), peSymbols}, + {[]byte("\x00\x00\x01\xEB"), plan9Symbols}, // 386 + {[]byte("\x00\x00\x04\x07"), plan9Symbols}, // mips + {[]byte("\x00\x00\x06\x47"), plan9Symbols}, // arm + {[]byte("\x00\x00\x8A\x97"), plan9Symbols}, // amd64 } func nm(file string) { |
