Commit bba5c33
Merge #467
467: cortex-m-rt: Remove LR push, to ensure the stack is 8-byte aligned. r=adamgreig a=Dirbaio
This was causing incorrect execution of code optimized with the assumption the stack is 8-byte aligned.
Alternate version of #463
- Remove instead of fix the sentinel/fake frame.
- Remove code initializing LR, since it's now clobbered by the `bl main` anyway.
- ~~Remove the .cfi directives, since Reset now has no correct CFI info. I think this is the "correct" thing to do here.~~
- ~~Initialize the frame pointer in R7 (suggestion from `@jamesmunns)~~`
Co-authored-by: Dario Nieuwenhuis <[email protected]>1 file changed
+1
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | 510 | | |
517 | 511 | | |
518 | 512 | | |
| |||
533 | 527 | | |
534 | 528 | | |
535 | 529 | | |
536 | | - | |
537 | | - | |
538 | | - | |
| 530 | + | |
539 | 531 | | |
540 | 532 | | |
541 | 533 | | |
| |||
572 | 564 | | |
573 | 565 | | |
574 | 566 | | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | | - | |
581 | 567 | | |
582 | 568 | | |
583 | 569 | | |
| |||
0 commit comments