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
This commit is contained in:
Bin Lu
2019-03-13 13:27:49 -07:00
committed by Shentubot
parent 8003bd6a5c
commit dfbd3c6e4a
+9 -1
View File
@@ -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 " +