Skip to content

Commit b0dfa57

Browse files
andreeaflorescudanielverkamp
authored andcommitted
fixed link issues on aarch64 musl
The linker was unable to find __addtf3, __multf3 and __subtf3. Added target-feature=+crt-static and link-arg=-lgcc as a temporary workaround. This seems to be the accepted fix in the Rust community: rust-lang/compiler-builtins#201 A permanent fix is yet to be implemented in the Rust compiler. Signed-off-by: Andreea Florescu <[email protected]>
1 parent cbd53fe commit b0dfa57

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.cargo/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[target.aarch64-unknown-linux-musl]
2+
rustflags = [ "-C", "target-feature=+crt-static", "-C", "link-arg=-lgcc" ]

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Add the list of code owners here (using their GitHub username)
22
* gatekeeper-PullAssigner
3-
* danielverkamp
3+
* @danielverkamp

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2021 The Chromium OS Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style license that can be
3-
// found in the LICENSE file.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
44

55
#![deny(missing_docs)]
66

src/writer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2021 The Chromium OS Authors. All rights reserved.
2-
// Use of this source code is governed by a BSD-style license that can be
3-
// found in the LICENSE file.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause
44

55
//! This module writes Flattened Devicetree blobs as defined here:
66
//! <https://devicetree-specification.readthedocs.io/en/stable/flattened-format.html>

0 commit comments

Comments
 (0)