summaryrefslogtreecommitdiff
path: root/src/cmd/ld/go.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-13 14:41:42 -0700
committerRuss Cox <rsc@golang.org>2009-08-13 14:41:42 -0700
commit74e1a206ece2a1144e42ef48eded5d3e4faafe7b (patch)
tree2f13697b21525fad3071b8f398946610a008f409 /src/cmd/ld/go.c
parent8194348e7dfef15a51100b388844a7c600618955 (diff)
downloadgo-74e1a206ece2a1144e42ef48eded5d3e4faafe7b.tar.gz
6g/6l: add go type information to symbol table.
archive size +70% binary size +30% old wreck.mtv=; ls -l /Users/rsc/bin/{godoc,gofmt} -rwxr-xr-x 1 rsc eng 1487922 Aug 13 13:21 /Users/rsc/bin/godoc -rwxr-xr-x 1 rsc eng 995995 Aug 13 13:21 /Users/rsc/bin/gofmt wreck.mtv=; du -sh $GOROOT/pkg/ 9.5M /home/rsc/go/pkg/ wreck.mtv=; new wreck.mtv=; ls -l /Users/rsc/bin/{godoc,gofmt} -rwxr-xr-x 1 rsc eng 2014390 Aug 13 14:25 /Users/rsc/bin/godoc -rwxr-xr-x 1 rsc eng 1268705 Aug 13 14:25 /Users/rsc/bin/gofmt wreck.mtv=; du -sh $GOROOT/pkg 16M /home/rsc/go/pkg wreck.mtv=; R=ken OCL=33217 CL=33220
Diffstat (limited to 'src/cmd/ld/go.c')
-rw-r--r--src/cmd/ld/go.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/ld/go.c b/src/cmd/ld/go.c
index fef39c891..891dee2e7 100644
--- a/src/cmd/ld/go.c
+++ b/src/cmd/ld/go.c
@@ -366,6 +366,8 @@ mark(Sym *s)
marktext(s->text);
if(s->data)
markdata(s->data, s);
+ if(s->gotype)
+ mark(s->gotype);
}
static void