diff options
Diffstat (limited to 'src/cmd/link/internal/ld/pcln.go')
-rw-r--r-- | src/cmd/link/internal/ld/pcln.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/link/internal/ld/pcln.go b/src/cmd/link/internal/ld/pcln.go index 3ef6f23b27..1f6aed3f71 100644 --- a/src/cmd/link/internal/ld/pcln.go +++ b/src/cmd/link/internal/ld/pcln.go @@ -111,10 +111,10 @@ func ftabaddstring(ctxt *Link, ftab *Symbol, s string) int32 { // numberfile assigns a file number to the file if it hasn't been assigned already. func numberfile(ctxt *Link, file *Symbol) { - if file.Type != objabi.SFILEPATH { + if file.Type != SFILEPATH { ctxt.Filesyms = append(ctxt.Filesyms, file) file.Value = int64(len(ctxt.Filesyms)) - file.Type = objabi.SFILEPATH + file.Type = SFILEPATH path := file.Name[len(src.FileSymPrefix):] file.Name = expandGoroot(path) } @@ -180,7 +180,7 @@ func container(s *Symbol) int { } // We want to generate func table entries only for the "lowest level" symbols, // not containers of subsymbols. - if s.Type&objabi.SCONTAINER != 0 { + if s.Type&SCONTAINER != 0 { return 1 } return 0 @@ -201,7 +201,7 @@ var pclntabLastFunc *Symbol func (ctxt *Link) pclntab() { funcdataBytes := int64(0) ftab := ctxt.Syms.Lookup("runtime.pclntab", 0) - ftab.Type = objabi.SPCLNTAB + ftab.Type = SPCLNTAB ftab.Attr |= AttrReachable // See golang.org/s/go12symtab for the format. Briefly: @@ -215,7 +215,7 @@ func (ctxt *Link) pclntab() { // Find container symbols, mark them with SCONTAINER for _, s := range ctxt.Textp { if s.Outer != nil { - s.Outer.Type |= objabi.SCONTAINER + s.Outer.Type |= SCONTAINER } } @@ -334,7 +334,7 @@ func (ctxt *Link) pclntab() { if len(pcln.InlTree) > 0 { inlTreeSym := ctxt.Syms.Lookup("inltree."+s.Name, 0) - inlTreeSym.Type = objabi.SRODATA + inlTreeSym.Type = SRODATA inlTreeSym.Attr |= AttrReachable | AttrDuplicateOK for i, call := range pcln.InlTree { @@ -443,7 +443,7 @@ const ( // function for a pc. See src/runtime/symtab.go:findfunc for details. func (ctxt *Link) findfunctab() { t := ctxt.Syms.Lookup("runtime.findfunctab", 0) - t.Type = objabi.SRODATA + t.Type = SRODATA t.Attr |= AttrReachable t.Attr |= AttrLocal |