summaryrefslogtreecommitdiff
path: root/src/cmd/gc/sysimport.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2008-11-20 17:32:18 -0800
committerRuss Cox <rsc@golang.org>2008-11-20 17:32:18 -0800
commit10d570dc0bf70cc926b3d191ebdfec4a9262212a (patch)
treee96b789dcf10a35bece45394915ee1cb372a9cfb /src/cmd/gc/sysimport.c
parent4e1bef804a65d5c3ede0db2e49cb296f2eca07bd (diff)
downloadgolang-10d570dc0bf70cc926b3d191ebdfec4a9262212a.tar.gz
symbol table changes
* add gotype string to symbol table * fill in gotype in 6l for known funcs/vars * print gotype with nm -t * load symbol and pc/ln tables into memory at magic address 0x99<<32. * add sys.symdat() to retrieve raw bytes of symbol table and pc/ln table. most of this should be considered experimental and subject to change. R=r DELTA=157 (128 added, 0 deleted, 29 changed) OCL=19746 CL=19750
Diffstat (limited to 'src/cmd/gc/sysimport.c')
-rw-r--r--src/cmd/gc/sysimport.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/gc/sysimport.c b/src/cmd/gc/sysimport.c
index 64dd1a98d..ba09bb970 100644
--- a/src/cmd/gc/sysimport.c
+++ b/src/cmd/gc/sysimport.c
@@ -1,4 +1,4 @@
-char *sysimport =
+char *sysimport =
"package sys\n"
"export func sys.mal (? int32) (? *any)\n"
"export func sys.breakpoint ()\n"
@@ -70,5 +70,6 @@ char *sysimport =
"export func sys.bytestorune (? *uint8, ? int, ? int) (? int, ? int)\n"
"export func sys.stringtorune (? string, ? int) (? int, ? int)\n"
"export func sys.exit (? int)\n"
+ "export func sys.symdat () (symtab *[]uint8, pclntab *[]uint8)\n"
"\n"
"$$\n";