cmd/link, etc: introduce SymKind type

Moves the grouping of symbol kinds (sections) into cmd/internal/obj
to keep it near the definition. Groundwork for CL 28538.

Change-Id: I99112981e69b028f366e1333f31cd7defd4ff82c
Reviewed-on: https://go-review.googlesource.com/28691
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
David Crawshaw 2016-09-07 14:45:27 -04:00
parent 791f71d192
commit 3877f820a6
8 changed files with 114 additions and 84 deletions

View file

@ -1949,9 +1949,9 @@ func Symaddr(ctxt *Link, s *Symbol) int64 {
return s.Value
}
func (ctxt *Link) xdefine(p string, t int, v int64) {
func (ctxt *Link) xdefine(p string, t obj.SymKind, v int64) {
s := Linklookup(ctxt, p, 0)
s.Type = int16(t)
s.Type = t
s.Value = v
s.Attr |= AttrReachable
s.Attr |= AttrSpecial