File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,7 @@ supported_targets! {
397397 ( "thumbv7m-none-eabi" , thumbv7m_none_eabi) ,
398398 ( "thumbv7em-none-eabi" , thumbv7em_none_eabi) ,
399399 ( "thumbv7em-none-eabihf" , thumbv7em_none_eabihf) ,
400- ( "thumbv8m-none-eabi" , thumbv8m_none_eabi ) ,
400+ ( "thumbv8m.base -none-eabi" , thumbv8m_base_none_eabi ) ,
401401
402402 ( "msp430-none-elf" , msp430_none_elf) ,
403403
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ pub fn target() -> TargetResult {
2626 linker_flavor : LinkerFlavor :: Lld ( LldFlavor :: Ld ) ,
2727
2828 options : TargetOptions {
29+ // ARMv8-M baseline doesn't support unaligned loads/stores so we disable them
30+ // with +strict-align.
31+ features : "+strict-align" . to_string ( ) ,
2932 max_atomic_width : Some ( 32 ) ,
3033 .. super :: thumb_base:: opts ( )
3134 } ,
You can’t perform that action at this time.
0 commit comments