aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug
diff options
context:
space:
mode:
authorRémy Oudompheng <oudomphe@phare.normalesup.org>2013-03-22 01:27:55 +0100
committerRémy Oudompheng <oudomphe@phare.normalesup.org>2013-03-22 01:27:55 +0100
commit5060dded0f9e4994b168123eeebb03f85e6deb20 (patch)
treeb0f818581d3ce88da4fa9e47c2c38033a9a8d4cd /src/pkg/debug
parentf8ff6893a579184d1ba62b0e178fe7ddfd695a1b (diff)
downloadgo-5060dded0f9e4994b168123eeebb03f85e6deb20.tar.xz
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
Diffstat (limited to 'src/pkg/debug')
-rw-r--r--src/pkg/debug/elf/file.go2
1 files changed, 1 insertions, 1 deletions
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
}