From: WANG Xuerui Date: Mon, 23 May 2022 03:02:57 +0000 (+0800) Subject: runtime: fix the vDSO symbol version on loong64 X-Git-Tag: go1.19beta1~137 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=3fa5ab0d83e1a27628dd997f3883eadd399679e1;p=gostls13.git runtime: fix the vDSO symbol version on loong64 The current value is appropriate for an early in-house version of Linux/LoongArch, but for the upstream version it is very likely "LINUX_5.10" instead, per the latest upstream submission [1]. [1]: https://lore.kernel.org/all/20220518095709.1313120-3-chenhuacai@loongson.cn/ Change-Id: Ia97e5cae82a5b306bd3eea86b9e442441da07973 Reviewed-on: https://go-review.googlesource.com/c/go/+/407755 TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Reviewed-by: Ian Lance Taylor Reviewed-by: David Chase Run-TryBot: Ian Lance Taylor Reviewed-by: abner chenc --- diff --git a/src/runtime/vdso_linux_loong64.go b/src/runtime/vdso_linux_loong64.go index ccf4d95fa2..e00ef952b3 100644 --- a/src/runtime/vdso_linux_loong64.go +++ b/src/runtime/vdso_linux_loong64.go @@ -12,11 +12,11 @@ const ( vdsoArrayMax = 1<<50 - 1 ) -// see man 7 vdso : loong64 -var vdsoLinuxVersion = vdsoVersionKey{"LINUX_2.6", 0x3ae75f6} +// not currently described in manpages as of May 2022, but will eventually +// appear +// when that happens, see man 7 vdso : loongarch +var vdsoLinuxVersion = vdsoVersionKey{"LINUX_5.10", 0xae78f70} -// The symbol name is not __kernel_clock_gettime as suggested by the manpage; -// according to Linux source code it should be __vdso_clock_gettime instead. var vdsoSymbolKeys = []vdsoSymbolKey{ {"__vdso_clock_gettime", 0xd35ec75, 0x6e43a318, &vdsoClockgettimeSym}, }