From: Frank Somers Date: Tue, 10 Oct 2017 20:15:56 +0000 (+0100) Subject: runtime: move vdso_linux_amd64.go to vdso_linux.go X-Git-Tag: go1.10beta1~792 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4477107b7b94c291726268a978d30913cc0b130b;p=gostls13.git runtime: move vdso_linux_amd64.go to vdso_linux.go This is a preparation step for adding vDSO support on linux/386. In a follow-on change, the vDSO ELF symbol lookup code in this file will be refactored so it can be used on multiple architectures. First, move the file to an architecture-neutral file name so that the change history is preserved. Build tags are added so that the build behaves as it did before. vdso_linux_amd64.go will be recreated later, just containing the amd64 specifics. If the move and refactor were combined in a single change, then the history to date would be lost because git would see the existing code as a new file. Change-Id: Iddb5da0d7faf141fd7cc835fe6a80c80153897e9 Reviewed-on: https://go-review.googlesource.com/69710 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/vdso_linux_amd64.go b/src/runtime/vdso_linux.go similarity index 99% rename from src/runtime/vdso_linux_amd64.go rename to src/runtime/vdso_linux.go index 37736b1028..84de070486 100644 --- a/src/runtime/vdso_linux_amd64.go +++ b/src/runtime/vdso_linux.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +// +build linux +// +build amd64 + package runtime import "unsafe"