Skip to content

Commit cfc1ee0

Browse files
add skip-data-init feature to optionally skip .data copy at reset
1 parent f5d53a9 commit cfc1ee0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cortex-m-rt/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
- Mark `pre_init` as deprecated
1111
- Add `set_msplim` feature to conditionally set the MSPLIM register at device
1212
reset ([#580]).
13+
- Add `skip-data-init` feature to optionally skip copying the `.data` section.
1314

1415
## [v0.7.5]
1516

cortex-m-rt/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,11 @@
513513
#![deny(missing_docs)]
514514
#![no_std]
515515

516+
#[cfg(all(feature = "skip-data-init", feature = "zero-init-ram"))]
517+
compile_error!(
518+
"features `skip-data-init` and `zero-init-ram` cannot be enabled at the same time"
519+
);
520+
516521
extern crate cortex_m_rt_macros as macros;
517522

518523
/// The 32-bit value the stack is painted with before the program runs.

0 commit comments

Comments
 (0)