1
0
mirror of https://github.com/golang/go synced 2024-11-26 10:48:22 -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:
Rémy Oudompheng 2013-03-22 01:27:55 +01:00
parent f8ff6893a5
commit 5060dded0f

View File

@ -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
}