From 021c11683ca28c7e01a2eca5ccbb9b8bd34e3bc1 Mon Sep 17 00:00:00 2001 From: David du Colombier <0intro@gmail.com> Date: Wed, 22 Jan 2014 23:30:52 +0100 Subject: 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 --- src/pkg/debug/plan9obj/testdata/386-plan9-exec | Bin 0 -> 37232 bytes src/pkg/debug/plan9obj/testdata/amd64-plan9-exec | Bin 0 -> 34279 bytes src/pkg/debug/plan9obj/testdata/hello.c | 8 ++++++++ 3 files changed, 8 insertions(+) create mode 100755 src/pkg/debug/plan9obj/testdata/386-plan9-exec create mode 100755 src/pkg/debug/plan9obj/testdata/amd64-plan9-exec create mode 100644 src/pkg/debug/plan9obj/testdata/hello.c (limited to 'src/pkg/debug/plan9obj/testdata') diff --git a/src/pkg/debug/plan9obj/testdata/386-plan9-exec b/src/pkg/debug/plan9obj/testdata/386-plan9-exec new file mode 100755 index 0000000000..748e83f8e6 Binary files /dev/null and b/src/pkg/debug/plan9obj/testdata/386-plan9-exec differ diff --git a/src/pkg/debug/plan9obj/testdata/amd64-plan9-exec b/src/pkg/debug/plan9obj/testdata/amd64-plan9-exec new file mode 100755 index 0000000000..3e257dd8ff Binary files /dev/null and b/src/pkg/debug/plan9obj/testdata/amd64-plan9-exec differ diff --git a/src/pkg/debug/plan9obj/testdata/hello.c b/src/pkg/debug/plan9obj/testdata/hello.c new file mode 100644 index 0000000000..c0d633e29f --- /dev/null +++ b/src/pkg/debug/plan9obj/testdata/hello.c @@ -0,0 +1,8 @@ +#include +#include + +void +main(void) +{ + print("hello, world\n"); +} -- cgit v1.3