Commit 25d09403 authored by Michael Hudson-Doyle's avatar Michael Hudson-Doyle

cmd/link: remove Linklookup & Linkrlookup

Change-Id: I25d9f74cb52e6fd4f2ad4b1c8b7102efadbc7481
Reviewed-on: https://go-review.googlesource.com/29344
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 324f6ab4
......@@ -1070,7 +1070,7 @@ func readelfsym(ctxt *Link, elfobj *ElfObj, i int, sym *ElfSym, needSym int) (er
// local names and hidden global names are unique
// and should only be referenced by their index, not name, so we
// don't bother to add them into the hash table
s = linknewsym(ctxt, sym.name, ctxt.Syms.Version)
s = ctxt.Syms.newsym(sym.name, ctxt.Syms.Version)
s.Type |= obj.SHIDDEN
}
......
......@@ -132,16 +132,3 @@ func (ctxt *Link) computeTLSOffset() {
}
}
func linknewsym(ctxt *Link, name string, v int) *Symbol {
return ctxt.Syms.newsym(name, v)
}
func Linklookup(ctxt *Link, name string, v int) *Symbol {
return ctxt.Syms.Lookup(name, v)
}
// read-only lookup
func Linkrlookup(ctxt *Link, name string, v int) *Symbol {
return ctxt.Syms.ROLookup(name, v)
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment