]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix the vDSO symbol version on loong64
authorWANG Xuerui <git@xen0n.name>
Mon, 23 May 2022 03:02:57 +0000 (11:02 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 23 May 2022 21:58:55 +0000 (21:58 +0000)
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 <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: David Chase <drchase@google.com>
Run-TryBot: Ian Lance Taylor <iant@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
src/runtime/vdso_linux_loong64.go

index ccf4d95fa2b8dce09839710b0af457300febfea5..e00ef952b376d8fb7fae082a02906311dd339032 100644 (file)
@@ -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},
 }