Skip to content

Commit 81857b6

Browse files
authored
Merge pull request #67 from kaspar030/insert-after
use "INSERT AFTER" in embedded-test.x
2 parents a5271f3 + eed8a44 commit 81857b6

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12+
- Ensure `embedded-test.x` is only augmenting the linker scripts
1213
- Make `std` enable `serde-json-core`'s `heapless` feature
1314

1415
## [0.6.2]

embedded-test.x

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ SECTIONS
1414
KEEP(*(.embedded_test.*));
1515
}
1616
}
17+
18+
# Without this `INSERT ...`, including this linker script using `-T...` will
19+
# replace the default linker script if this is the first linker script
20+
# included.
21+
# See https://github.com/probe-rs/embedded-test/pull/67 for more information.
22+
INSERT AFTER .comment;

examples/std/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::env;
22

33
fn main() {
44
// add linker script for embedded-test!!
5-
println!("cargo::rustc-link-arg-tests=../../embedded-test.x");
5+
println!("cargo::rustc-link-arg-tests=-Tembedded-test.x");
66

77
// Check if the `defmt` feature is enabled, and if so link its linker script
88
if env::var("CARGO_FEATURE_DEFMT").is_ok() {

0 commit comments

Comments
 (0)