diff options
author | 2023-02-14 01:51:13 +0000 | |
---|---|---|
committer | 2023-02-14 01:51:13 +0000 | |
commit | bba5c338b7d72dc1b8ac8424d654fc61bf7eaa06 (patch) | |
tree | 7468e1102da5898fa1568b67acd240d07a985df5 /cortex-m-rt/link.x.in | |
parent | 9d63aa9e135cf319e96863f46699f3ade7f6f333 (diff) | |
parent | ebf2dd6a3414a755b7f93dfea26dc30db31a842a (diff) | |
download | cortex-m-bba5c338b7d72dc1b8ac8424d654fc61bf7eaa06.tar.gz cortex-m-bba5c338b7d72dc1b8ac8424d654fc61bf7eaa06.tar.zst cortex-m-bba5c338b7d72dc1b8ac8424d654fc61bf7eaa06.zip |
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 <dirbaio@dirbaio.net>
Diffstat (limited to 'cortex-m-rt/link.x.in')
0 files changed, 0 insertions, 0 deletions