aboutsummaryrefslogtreecommitdiff
path: root/src/pkg
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-02-27 20:37:00 -0500
committerRuss Cox <rsc@golang.org>2014-02-27 20:37:00 -0500
commitd9c6ae6ae8359429a249b074b07baf5cbc894d7f (patch)
tree0a2882395bc78e5052e1e3b76bfe7c6704f15d7e /src/pkg
parent8d2465ab501eb186ffe869019f3d69b125954993 (diff)
downloadgo-d9c6ae6ae8359429a249b074b07baf5cbc894d7f.tar.xz
all: final merge of NaCl tree
This CL replays the following one CL from the rsc-go13nacl repo. This is the last replay CL: after this CL the main repo will have everything the rsc-go13nacl repo did. Changes made to the main repo after the rsc-go13nacl repo branched off probably mean that NaCl doesn't actually work after this CL, but all the code is now moved over and just needs to be redebugged. --- cmd/6l, cmd/8l, cmd/ld: support for Native Client See golang.org/s/go13nacl for design overview. This CL is publicly visible but not CC'ed to golang-dev, to avoid distracting from the preparation of the Go 1.2 release. This CL and the others will be checked into my rsc-go13nacl clone repo for now, and I will send CLs against the main repo early in the Go 1.3 development. R≡khr https://golang.org/cl/15750044 --- LGTM=bradfitz, dave, iant R=dave, bradfitz, iant CC=golang-codereviews https://golang.org/cl/69040044
Diffstat (limited to 'src/pkg')
-rw-r--r--src/pkg/runtime/type.h2
-rw-r--r--src/pkg/runtime/typekind.h3
2 files changed, 1 insertions, 4 deletions
diff --git a/src/pkg/runtime/type.h b/src/pkg/runtime/type.h
index ff0505be87..1598acc180 100644
--- a/src/pkg/runtime/type.h
+++ b/src/pkg/runtime/type.h
@@ -16,7 +16,7 @@ typedef struct IMethod IMethod;
typedef struct SliceType SliceType;
typedef struct FuncType FuncType;
-// Needs to be in sync with typekind.h/CommonSize
+// Needs to be in sync with ../../cmd/ld/decodesym.c:/^commonsize
struct Type
{
uintptr size;
diff --git a/src/pkg/runtime/typekind.h b/src/pkg/runtime/typekind.h
index df53f20c84..3f0ba9acb8 100644
--- a/src/pkg/runtime/typekind.h
+++ b/src/pkg/runtime/typekind.h
@@ -34,8 +34,5 @@ enum {
KindUnsafePointer,
KindNoPointers = 1<<7,
-
- // size of Type structure.
- CommonSize = 7*PtrSize + 8,
};