summaryrefslogtreecommitdiff
path: root/src/cmd/ld/lib.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-07-19 18:52:35 -0400
committerRuss Cox <rsc@golang.org>2013-07-19 18:52:35 -0400
commit69a3d4db3da3d79d7b13af937808a33a2572918a (patch)
tree58ca84a38c6c2f4075e5e8974879c379cae64928 /src/cmd/ld/lib.c
parente485bbd832f245b2a5c1713068b26e4d40a284fe (diff)
downloadgo-69a3d4db3da3d79d7b13af937808a33a2572918a.tar.gz
cmd/ld, runtime: remove unused fields from Func
R=golang-dev, r CC=golang-dev https://codereview.appspot.com/11604043
Diffstat (limited to 'src/cmd/ld/lib.c')
-rw-r--r--src/cmd/ld/lib.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c
index 674a12977..49f2bc304 100644
--- a/src/cmd/ld/lib.c
+++ b/src/cmd/ld/lib.c
@@ -2400,7 +2400,7 @@ pclntab(void)
// fixed size of struct, checked below
off = funcstart;
- end = funcstart + PtrSize + 6*4 + 5*4 + npcdata*4 + nfuncdata*PtrSize;
+ end = funcstart + PtrSize + 3*4 + 5*4 + npcdata*4 + nfuncdata*PtrSize;
if(nfuncdata > 0 && (end&(PtrSize-1)))
end += 4;
symgrow(ftab, end);
@@ -2417,9 +2417,6 @@ pclntab(void)
off = setuint32(ftab, off, ArgsSizeUnknown);
else
off = setuint32(ftab, off, cursym->args);
-
- // Dead space. TODO: Delete (and update all parsers).
- off = setuint32(ftab, off, 0);
// frame int32
// TODO: Remove entirely. The pcsp table is more precise.
@@ -2432,10 +2429,6 @@ pclntab(void)
else
off = setuint32(ftab, off, (uint32)cursym->text->to.offset+PtrSize);
- // Dead space. TODO: Delete (and update all parsers).
- off = setuint32(ftab, off, 0);
- off = setuint32(ftab, off, 0);
-
// pcsp table (offset int32)
off = addpctab(ftab, off, cursym, "pctospadj", pctospadj, 0);