[dev.link] cmd/link: remove elfsetstring

No longer needed.

Change-Id: I7cd08915e4731c4546414340df69521e2347367f
Reviewed-on: https://go-review.googlesource.com/c/go/+/233521
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
Cherry Zhang 2020-05-12 17:16:51 -04:00
parent 69261d1f36
commit 2eb475be6b
6 changed files with 6 additions and 28 deletions

View file

@ -363,7 +363,7 @@ func (sb *SymbolBuilder) Addstring(str string) int64 {
r := sb.size
if sb.name == ".shstrtab" {
// FIXME: find a better mechanism for this
sb.l.elfsetstring(nil, str, int(r))
sb.l.elfsetstring(str, int(r))
}
sb.data = append(sb.data, str...)
sb.data = append(sb.data, 0)