From 44b2caa2e53c4c023430e96b38b243142068a7d2 Mon Sep 17 00:00:00 2001 From: Penny Zheng Date: Mon, 30 Dec 2019 16:04:13 +0800 Subject: [PATCH] AArch64: missing symbols on target `aarch64-unknown-linux-musl` The __addtf3, __subtf3 and __multf3 symbols are used by aarch64-musl, but are not provided by rust compiler-builtins. For now, the only temporary but functional workaround accepted by rust communities is to get them from libgcc. Fixes: #107 Signed-off-by: Penny Zheng --- src/agent/.cargo/config | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/agent/.cargo/config diff --git a/src/agent/.cargo/config b/src/agent/.cargo/config new file mode 100644 index 000000000..e2c49b02f --- /dev/null +++ b/src/agent/.cargo/config @@ -0,0 +1,11 @@ +## Copyright (c) 2020 ARM Limited +## +## SPDX-License-Identifier: Apache-2.0 +## + +[target.aarch64-unknown-linux-musl] +## The __addtf3, __subtf3 and __multf3 symbols are used by aarch64-musl, +## but are not provided by rust compiler-builtins. +## For now, the only functional workaround accepted by rust communities +## is to get them from libgcc. +rustflags = [ "-C", "link-arg=-lgcc" ]