Skip to content

Commit 5a7283f

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 <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Hiroshi Ioka <[email protected]> Reviewed-by: Joe Tsai <[email protected]>
1 parent 1e09304 commit 5a7283f

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

src/cmd/link/internal/ld/lib.go

-4
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,6 @@ const (
19291929
BSSSym = 'B'
19301930
UndefinedSym = 'U'
19311931
TLSSym = 't'
1932-
FileSym = 'f'
19331932
FrameSym = 'm'
19341933
ParamSym = 'p'
19351934
AutoSym = 'a'
@@ -2014,9 +2013,6 @@ func genasmsym(ctxt *Link, put func(*Link, *Symbol, string, SymbolType, int64, *
20142013
}
20152014
put(ctxt, s, s.Name, BSSSym, Symaddr(s), s.Gotype)
20162015

2017-
case SFILE:
2018-
put(ctxt, nil, s.Name, FileSym, s.Value, nil)
2019-
20202016
case SHOSTOBJ:
20212017
if Headtype == objabi.Hwindows || Iself {
20222018
put(ctxt, s, s.Name, UndefinedSym, s.Value, nil)

src/cmd/link/internal/ld/symkind.go

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ const (
9797
SMACHOSYMTAB
9898
SMACHOINDIRECTPLT
9999
SMACHOINDIRECTGOT
100-
SFILE
101100
SFILEPATH
102101
SCONST
103102
SDYNIMPORT

src/cmd/link/internal/ld/symkind_string.go

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/link/internal/ld/symtab.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func putplan9sym(ctxt *Link, x *Symbol, s string, typ SymbolType, addr int64, go
223223
}
224224
fallthrough
225225

226-
case AutoSym, ParamSym, FileSym, FrameSym:
226+
case AutoSym, ParamSym, FrameSym:
227227
l := 4
228228
if Headtype == objabi.Hplan9 && SysArch.Family == sys.AMD64 && !Flag8 {
229229
Lputb(uint32(addr >> 32))
@@ -234,11 +234,6 @@ func putplan9sym(ctxt *Link, x *Symbol, s string, typ SymbolType, addr int64, go
234234
Cput(uint8(t + 0x80)) /* 0x80 is variable length */
235235

236236
var i int
237-
238-
/* skip the '<' in filenames */
239-
if t == FileSym {
240-
s = s[1:]
241-
}
242237
for i = 0; i < len(s); i++ {
243238
Cput(s[i])
244239
}

0 commit comments

Comments
 (0)