Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153465942
D40842.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
836 B
Referenced Files
None
Subscribers
None
D40842.diff
View Options
diff --git a/lib/csu/aarch64/crti.S b/lib/csu/aarch64/crti.S
--- a/lib/csu/aarch64/crti.S
+++ b/lib/csu/aarch64/crti.S
@@ -35,14 +35,14 @@
.globl _init
.type _init,@function
_init:
- sub sp, sp, #16
- str lr, [sp]
+ stp x29, x30, [sp, #-16]!
+ mov x29, sp
.section .fini,"ax",@progbits
.align 4
.globl _fini
.type _fini,@function
_fini:
- sub sp, sp, #16
- str lr, [sp]
+ stp x29, x30, [sp, #-16]!
+ mov x29, sp
diff --git a/lib/csu/aarch64/crtn.S b/lib/csu/aarch64/crtn.S
--- a/lib/csu/aarch64/crtn.S
+++ b/lib/csu/aarch64/crtn.S
@@ -31,14 +31,12 @@
__FBSDID("$FreeBSD$");
.section .init,"ax",@progbits
- ldr lr, [sp]
- add sp, sp, #16
+ ldp x29, x30, [sp], #16
ret
.section .fini,"ax",@progbits
- ldr lr, [sp]
- add sp, sp, #16
+ ldp x29, x30, [sp], #16
ret
.section .note.GNU-stack,"",%progbits
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 8:10 AM (10 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31963782
Default Alt Text
D40842.diff (836 B)
Attached To
Mode
D40842: csu: Add the prologue and epilogue to the _init and _fini on aarch64
Attached
Detach File
Event Timeline
Log In to Comment