diff options
| author | David du Colombier <0intro@gmail.com> | 2014-05-20 10:56:50 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2014-05-20 10:56:50 -0700 |
| commit | b28aa1f1ecfd54178e4074670a4f2fa708ef0cf0 (patch) | |
| tree | 0b42aab31cf9372b8914e4b1de85adbad4d8ea37 /src/pkg/debug/plan9obj/file_test.go | |
| parent | 294f9b88c4fed9837555abfe61fd1e443e9b3c6c (diff) | |
| download | go-b28aa1f1ecfd54178e4074670a4f2fa708ef0cf0.tar.xz | |
debug/plan9obj: cleanup api
- Don't export Prog structure.
- Remove ProgHeader and ExecTable structures.
- Add Magic, Bss and Entry fields in FileHeader.
- Replace ?_MAGIC variables with constants.
- Ignore final EOF from ReadAt.
- Improve documentation.
Fixes #7989.
LGTM=rsc
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/91400044
Diffstat (limited to 'src/pkg/debug/plan9obj/file_test.go')
| -rw-r--r-- | src/pkg/debug/plan9obj/file_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/debug/plan9obj/file_test.go b/src/pkg/debug/plan9obj/file_test.go index cc1db40929..96186d8156 100644 --- a/src/pkg/debug/plan9obj/file_test.go +++ b/src/pkg/debug/plan9obj/file_test.go @@ -18,7 +18,7 @@ type fileTest struct { var fileTests = []fileTest{ { "testdata/386-plan9-exec", - FileHeader{4}, + FileHeader{Magic386, 0x324, 0x14, 4}, []*SectionHeader{ {"text", 0x4c5f, 0x20}, {"data", 0x94c, 0x4c7f}, @@ -29,7 +29,7 @@ var fileTests = []fileTest{ }, { "testdata/amd64-plan9-exec", - FileHeader{8}, + FileHeader{MagicAMD64, 0x618, 0x13, 8}, []*SectionHeader{ {"text", 0x4213, 0x28}, {"data", 0xa80, 0x423b}, |
