summaryrefslogtreecommitdiff
path: root/sysdeps/aarch64
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-11-09 11:31:04 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-11-09 11:31:04 +0100
commit5edf3d9fd6efe06fda37b2a460e60690a90457a4 (patch)
tree2814b0a5f6c1984cb6ca1a990fe27ee752d84d7a /sysdeps/aarch64
parentdfe2e7a5627f2c7bdc298fc714dbf12f7666fa2a (diff)
downloadglibc-5edf3d9fd6efe06fda37b2a460e60690a90457a4.tar.gz
aarch64: Add unwind information to _start (bug 26853)
This adds CFI directives which communicate that the stack ends with this function. Fixes bug 26853.
Diffstat (limited to 'sysdeps/aarch64')
-rw-r--r--sysdeps/aarch64/start.S7
1 files changed, 3 insertions, 4 deletions
diff --git a/sysdeps/aarch64/start.S b/sysdeps/aarch64/start.S
index 75393e1c18..108f602721 100644
--- a/sysdeps/aarch64/start.S
+++ b/sysdeps/aarch64/start.S
@@ -43,11 +43,9 @@
*/
.text
- .globl _start
- .type _start,#function
-_start:
- BTI_C
+ENTRY(_start)
/* Create an initial frame with 0 LR and FP */
+ cfi_undefined (x30)
mov x29, #0
mov x30, #0
@@ -103,6 +101,7 @@ _start:
__wrap_main:
b main
#endif
+END(_start)
/* Define a symbol for the first piece of initialized data. */
.data