mirror of
https://github.com/golang/go
synced 2024-09-30 00:04:28 -06:00
cmd/link: always set .dynsym info field
CL 187979 added set .dynsym info field, but it won't when there are no global symbols. This CL sets that field unconditionally. Fixes #34000 Change-Id: Icc2f8bc74afdade88a377793e6760912b03686ba Reviewed-on: https://go-review.googlesource.com/c/go/+/192600 Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
79669dc705
commit
fa7d40abe0
@ -1948,10 +1948,10 @@ func Asmbelf(ctxt *Link, symo int64) {
|
||||
for sub := s; sub != nil; sub = sub.Sub {
|
||||
i++
|
||||
if !sub.Attr.Local() {
|
||||
sh.info = i
|
||||
break
|
||||
}
|
||||
}
|
||||
sh.info = i
|
||||
shsym(sh, s)
|
||||
|
||||
sh = elfshname(".dynstr")
|
||||
|
Loading…
Reference in New Issue
Block a user