mirror of
https://github.com/golang/go
synced 2024-11-26 13:28:27 -07:00
debug/elf: repair GNU version symbols.
After the revert of revision 9ea9e7e6e0c8 the related revision 76ff7da868c6 must be reverted too. Fixes #5102. R=golang-dev, r CC=golang-dev https://golang.org/cl/7961044
This commit is contained in:
parent
f8ff6893a5
commit
5060dded0f
@ -718,7 +718,7 @@ func (f *File) gnuVersionInit(str []byte) {
|
||||
// which came from offset i of the symbol table.
|
||||
func (f *File) gnuVersion(i int, sym *ImportedSymbol) {
|
||||
// Each entry is two bytes.
|
||||
i = i * 2
|
||||
i = (i + 1) * 2
|
||||
if i >= len(f.gnuVersym) {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user