Skip to content

Commit 7793e3a

Browse files
authored
Merge pull request #23 from knurling-rs/nmagic-linkers
pass --nmagic to the linker
2 parents ac180e7 + f9ef620 commit 7793e3a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ rustflags = [
55
"-C", "linker=flip-link",
66
"-C", "link-arg=-Tlink.x",
77
"-C", "link-arg=-Tdefmt.x",
8+
# This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x
9+
# See https://github.com/rust-embedded/cortex-m-quickstart/pull/95
10+
"-C", "link-arg=--nmagic",
811
]
912

1013
[build]

0 commit comments

Comments
 (0)