We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf70f5 commit b38af9dCopy full SHA for b38af9d
cortex-m-rt/asm.S
@@ -94,6 +94,10 @@ Reset:
94
#endif
95
96
4:
97
+ # Preserve `lr` and emit debuginfo that lets external tools restore it.
98
+ # This fixes unwinding past the `Reset` handler.
99
+ # See https://sourceware.org/binutils/docs/as/CFI-directives.html for an
100
+ # explanation of the directives.
101
.cfi_def_cfa sp, 0
102
push {lr}
103
.cfi_offset lr, 0
0 commit comments