mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[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:
parent
69261d1f36
commit
2eb475be6b
6 changed files with 6 additions and 28 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue