From: Rémy Oudompheng Date: Fri, 22 Mar 2013 00:27:55 +0000 (+0100) Subject: debug/elf: repair GNU version symbols. X-Git-Tag: go1.1rc2~393 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5060dded0f9e4994b168123eeebb03f85e6deb20;p=gostls13.git 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 --- diff --git a/src/pkg/debug/elf/file.go b/src/pkg/debug/elf/file.go index 0d022ab910..a55c37ea99 100644 --- a/src/pkg/debug/elf/file.go +++ b/src/pkg/debug/elf/file.go @@ -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 }