aarch64: Add unwind information to _start (bug 26853)

This adds CFI directives which communicate that the stack ends
with this function.

Fixes bug 26853.
This commit is contained in:
Florian Weimer 2020-11-09 11:31:04 +01:00
parent dfe2e7a562
commit 5edf3d9fd6

View File

@ -43,11 +43,9 @@
*/ */
.text .text
.globl _start ENTRY(_start)
.type _start,#function
_start:
BTI_C
/* Create an initial frame with 0 LR and FP */ /* Create an initial frame with 0 LR and FP */
cfi_undefined (x30)
mov x29, #0 mov x29, #0
mov x30, #0 mov x30, #0
@ -103,6 +101,7 @@ _start:
__wrap_main: __wrap_main:
b main b main
#endif #endif
END(_start)
/* Define a symbol for the first piece of initialized data. */ /* Define a symbol for the first piece of initialized data. */
.data .data