public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] aarch64: Add unwind information to _start (bug 26853)
@ 2020-11-09 12:01 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2020-11-09 12:01 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=5edf3d9fd6efe06fda37b2a460e60690a90457a4

commit 5edf3d9fd6efe06fda37b2a460e60690a90457a4
Author: Florian Weimer <fweimer@redhat.com>
Date:   Mon Nov 9 11:31:04 2020 +0100

    aarch64: Add unwind information to _start (bug 26853)
    
    This adds CFI directives which communicate that the stack ends
    with this function.
    
    Fixes bug 26853.

Diff:
---
 sysdeps/aarch64/start.S | 7 +++----
 1 file 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-11-09 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-09 12:01 [glibc] aarch64: Add unwind information to _start (bug 26853) Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).