diff options
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/plugin.go | 13 | ||||
| -rw-r--r-- | src/runtime/symtab.go | 2 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/runtime/plugin.go b/src/runtime/plugin.go new file mode 100644 index 0000000000..f5f3aa2e5b --- /dev/null +++ b/src/runtime/plugin.go @@ -0,0 +1,13 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package runtime + +// A ptabEntry is generated by the compiler for each exported function +// and global variable in the main package of a plugin. It is used to +// initialize the plugin module's symbol map. +type ptabEntry struct { + name nameOff + typ typeOff +} diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 7a37085fab..87b478a885 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -198,6 +198,8 @@ type moduledata struct { typelinks []int32 // offsets from types itablinks []*itab + ptab []ptabEntry + modulename string modulehashes []modulehash |
