japaric / f3

Board Support Crate for the STM32F3DISCOVERY
Apache License 2.0
95 stars 35 forks source link

opt-out Cargo feature to not initialize .bss / .data #54

Closed japaric closed 8 years ago

japaric commented 8 years ago

Some applications don't use these sections. They should be able to opt-out of the initialization code that zeroes .bss and initializes .data.

When this Cargo feature is disabled, use of static mut variables, or rather anything that goes in these sections, should be forbidden via linker script magic.