diff options
author | Bin Lu <bin.lu@arm.com> | 2019-03-13 13:26:13 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-03-13 13:27:49 -0700 |
commit | dfbd3c6e4a15cf0c9488b2eb01899790407b164d (patch) | |
tree | ca4621d1be6d8ea8a2dec0dd56a2197c1b047331 /vdso | |
parent | 8003bd6a5c012784c0b2a2dad93cbec969fac3b0 (diff) |
vdso/BUILD: add bazel building support for Arm64
Signed-off-by: Bin Lu <bin.lu@arm.com>
mpratt@google.com: matched against just x86_64, since that's all we care about.
Change-Id: I1320ef31cef6517bf6121a933cc105f2ac548ec8
PiperOrigin-RevId: 238294240
Diffstat (limited to 'vdso')
-rw-r--r-- | vdso/BUILD | 10 |
1 files changed, 9 insertions, 1 deletions
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 " + |