Permalink
Browse files

cmd/link: remove unused SFILE and FileSym

Change-Id: Iec610753052abcf6941a1cd16a9256ee9d689732
Reviewed-on: https://go-review.googlesource.com/59750
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Hiroshi Ioka <hirochachacha@gmail.com>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
  • Loading branch information...
ianlancetaylor committed Aug 29, 2017
1 parent 1e09304 commit 5a7283f1467014fb1f5e149b76f61e0a3138accf
@@ -1929,7 +1929,6 @@ const (
BSSSym = 'B'
UndefinedSym = 'U'
TLSSym = 't'
FileSym = 'f'
FrameSym = 'm'
ParamSym = 'p'
AutoSym = 'a'
@@ -2014,9 +2013,6 @@ func genasmsym(ctxt *Link, put func(*Link, *Symbol, string, SymbolType, int64, *
}
put(ctxt, s, s.Name, BSSSym, Symaddr(s), s.Gotype)
case SFILE:
put(ctxt, nil, s.Name, FileSym, s.Value, nil)
case SHOSTOBJ:
if Headtype == objabi.Hwindows || Iself {
put(ctxt, s, s.Name, UndefinedSym, s.Value, nil)
@@ -97,7 +97,6 @@ const (
SMACHOSYMTAB
SMACHOINDIRECTPLT
SMACHOINDIRECTGOT
SFILE
SFILEPATH
SCONST
SDYNIMPORT

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -223,7 +223,7 @@ func putplan9sym(ctxt *Link, x *Symbol, s string, typ SymbolType, addr int64, go
}
fallthrough
case AutoSym, ParamSym, FileSym, FrameSym:
case AutoSym, ParamSym, FrameSym:
l := 4
if Headtype == objabi.Hplan9 && SysArch.Family == sys.AMD64 && !Flag8 {
Lputb(uint32(addr >> 32))
@@ -234,11 +234,6 @@ func putplan9sym(ctxt *Link, x *Symbol, s string, typ SymbolType, addr int64, go
Cput(uint8(t + 0x80)) /* 0x80 is variable length */
var i int
/* skip the '<' in filenames */
if t == FileSym {
s = s[1:]
}
for i = 0; i < len(s); i++ {
Cput(s[i])
}

0 comments on commit 5a7283f

Please sign in to comment.