Skip to content

Commit f1df6a8

Browse files
Merge #140
140: Cargo.toml: Add `links = "cortex-m"` r=therealprof a=jonas-schievink This prevents linking multiple versions of `cortex-m` together, which would be unsound. Currently it uses a `#[no_mangle]` static for this, which isn't always reliable. Fixes #137 Co-authored-by: Jonas Schievink <[email protected]>
2 parents 10d6e25 + fa185a6 commit f1df6a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ name = "cortex-m"
1212
readme = "README.md"
1313
repository = "https://github.com/japaric/cortex-m"
1414
version = "0.6.0"
15+
links = "cortex-m" # prevent multiple versions of this crate to be linked together
1516

1617
[dependencies]
1718
aligned = "0.3.1"

0 commit comments

Comments
 (0)