diff options
Diffstat (limited to 'src/runtime/vdso_linux.go')
| -rw-r--r-- | src/runtime/vdso_linux.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/runtime/vdso_linux.go b/src/runtime/vdso_linux.go index 7939bb54be..c246b33884 100644 --- a/src/runtime/vdso_linux.go +++ b/src/runtime/vdso_linux.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // +build linux -// +build 386 amd64 arm +// +build 386 amd64 arm arm64 package runtime @@ -96,8 +96,6 @@ type vdsoInfo struct { verdef *elfVerdef } -var linux26 = vdsoVersionKey{"LINUX_2.6", 0x3ae75f6} - // see vdso_linux_*.go for vdsoSymbolKeys[] and vdso*Sym vars func vdsoInitFromSysinfoEhdr(info *vdsoInfo, hdr *elfEhdr) { @@ -220,7 +218,6 @@ func vdsoParseSymbols(info *vdsoInfo, version int32) { if k.name != gostringnocopy(&info.symstrings[sym.st_name]) { return false } - // Check symbol version. if info.versym != nil && version != 0 && int32(info.versym[symIndex]&0x7fff) != version { return false @@ -276,7 +273,7 @@ func vdsoauxv(tag, val uintptr) { // when passed to the three functions below. info1 := (*vdsoInfo)(noescape(unsafe.Pointer(&info))) vdsoInitFromSysinfoEhdr(info1, (*elfEhdr)(unsafe.Pointer(val))) - vdsoParseSymbols(info1, vdsoFindVersion(info1, &linux26)) + vdsoParseSymbols(info1, vdsoFindVersion(info1, &vdsoLinuxVersion)) } } |
