diff options
| author | Russ Cox <rsc@golang.org> | 2013-07-18 10:43:22 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2013-07-18 10:43:22 -0400 |
| commit | c3de91bb15cf23bd1757c63c581f9da4b7e14598 (patch) | |
| tree | 9f8961feeff7ba913cf70e00c464acc12560925e /src/pkg/runtime/runtime.h | |
| parent | 08ce3c313376b6d600c08b977103d6c51350b3f6 (diff) | |
| download | go-c3de91bb15cf23bd1757c63c581f9da4b7e14598.tar.xz | |
cmd/ld, runtime: use new contiguous pcln table
R=golang-dev, r, dave
CC=golang-dev
https://golang.org/cl/11494043
Diffstat (limited to 'src/pkg/runtime/runtime.h')
| -rw-r--r-- | src/pkg/runtime/runtime.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pkg/runtime/runtime.h b/src/pkg/runtime/runtime.h index 34d9541e98..3a11f88954 100644 --- a/src/pkg/runtime/runtime.h +++ b/src/pkg/runtime/runtime.h @@ -402,12 +402,14 @@ enum SigIgnored = 1<<6, // the signal was ignored before we registered for it }; -// layout of in-memory per-function information prepared by linker +// Layout of in-memory per-function information prepared by linker // See http://golang.org/s/go12symtab. +// Keep in sync with linker and with ../../libmach/sym.c +// and with package debug/gosym. struct Func { - String *name; // function name uintptr entry; // start pc + int32 nameoff; // function name // TODO: Remove these fields. int32 args; // in/out args size @@ -799,6 +801,7 @@ Func* runtime·findfunc(uintptr); int32 runtime·funcline(Func*, uintptr, String*); int32 runtime·funcarglen(Func*, uintptr); int32 runtime·funcspdelta(Func*, uintptr); +int8* runtime·funcname(Func*); void* runtime·stackalloc(uint32); void runtime·stackfree(void*, uintptr); MCache* runtime·allocmcache(void); |
