-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,2 @@ | ||
# Licensed under the Apache License, Version 2.0 or the MIT License. | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
# Copyright Tock Contributors 2024. | ||
include = "../cargo.config.toml" | ||
|
||
[build] | ||
rustflags = [ | ||
"-C", "linker=rust-lld", | ||
# Use the LLVM lld executable with the `-flavor gnu` flag. | ||
"-C", "linker-flavor=ld.lld", | ||
# Use static relocation model. See https://github.com/tock/tock/pull/2853 | ||
"-C", "relocation-model=static", | ||
# lld by default uses a default page size to align program sections. Tock | ||
# expects that program sections are set back-to-back. `-nmagic` instructs the | ||
# linker to not page-align sections. | ||
"-C", "link-arg=-nmagic", | ||
# Identical Code Folding (ICF) set to all. This tells the linker to be more | ||
# aggressive about removing duplicate code. The default is `safe`, and the | ||
# downside to `all` is that different functions in the code can end up with | ||
# the same address in the binary. However, it can save a fair bit of code | ||
# size. | ||
"-C", "link-arg=-icf=all", | ||
# Opt-in to Rust v0 symbol mangling scheme. See | ||
# https://github.com/rust-lang/rust/issues/60705 and | ||
# https://github.com/tock/tock/issues/3529. | ||
"-C", "symbol-mangling-version=v0", | ||
# Enable link-time-optimization | ||
"-C", "lto", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Licensed under the Apache License, Version 2.0 or the MIT License. | ||
# SPDX-License-Identifier: Apache-2.0 OR MIT | ||
# Copyright Tock Contributors 2024. | ||
|
||
[build] | ||
rustflags = [ | ||
"-C", "linker=rust-lld", | ||
# Use the LLVM lld executable with the `-flavor gnu` flag. | ||
"-C", "linker-flavor=ld.lld", | ||
# Use static relocation model. See https://github.com/tock/tock/pull/2853 | ||
"-C", "relocation-model=static", | ||
# lld by default uses a default page size to align program sections. Tock | ||
# expects that program sections are set back-to-back. `-nmagic` instructs the | ||
# linker to not page-align sections. | ||
"-C", "link-arg=-nmagic", | ||
# Identical Code Folding (ICF) set to all. This tells the linker to be more | ||
# aggressive about removing duplicate code. The default is `safe`, and the | ||
# downside to `all` is that different functions in the code can end up with | ||
# the same address in the binary. However, it can save a fair bit of code | ||
# size. | ||
"-C", "link-arg=-icf=all", | ||
# Opt-in to Rust v0 symbol mangling scheme. See | ||
# https://github.com/rust-lang/rust/issues/60705 and | ||
# https://github.com/tock/tock/issues/3529. | ||
"-C", "symbol-mangling-version=v0", | ||
# Enable link-time-optimization | ||
"-C", "lto", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters