From dfbd3c6e4a15cf0c9488b2eb01899790407b164d Mon Sep 17 00:00:00 2001 From: Bin Lu Date: Wed, 13 Mar 2019 13:26:13 -0700 Subject: [PATCH] vdso/BUILD: add bazel building support for Arm64 Signed-off-by: Bin Lu mpratt@google.com: matched against just x86_64, since that's all we care about. Change-Id: I1320ef31cef6517bf6121a933cc105f2ac548ec8 PiperOrigin-RevId: 238294240 --- vdso/BUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/vdso/BUILD b/vdso/BUILD index c43d24070..bcf527f84 100644 --- a/vdso/BUILD +++ b/vdso/BUILD @@ -5,6 +5,11 @@ package(licenses = ["notice"]) +config_setting( + name = "x86_64", + constraint_values = ["@bazel_tools//platforms:x86_64"], +) + genrule( name = "vdso", srcs = [ @@ -30,7 +35,10 @@ genrule( # VDSO has no hooks to handle failures. "-fno-stack-protector " + "-fuse-ld=gold " + - "-m64 " + + select({ + ":x86_64": "-m64 ", + "//conditions:default": "", + }) + "-shared " + "-nostdlib " + "-Wl,-soname=linux-vdso.so.1 " +