Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111387489
D40795.id123970.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
734 B
Referenced Files
None
Subscribers
None
D40795.id123970.diff
View Options
diff --git a/lib/csu/amd64/crti.S b/lib/csu/amd64/crti.S
--- a/lib/csu/amd64/crti.S
+++ b/lib/csu/amd64/crti.S
@@ -31,13 +31,15 @@
.globl _init
.type _init,@function
_init:
- subq $8,%rsp
+ pushq %rbp
+ movq %rsp,%rbp
.section .fini,"ax",@progbits
.align 4
.globl _fini
.type _fini,@function
_fini:
- subq $8,%rsp
+ pushq %rbp
+ movq %rsp,%rbp
.section .note.GNU-stack,"",%progbits
diff --git a/lib/csu/amd64/crtn.S b/lib/csu/amd64/crtn.S
--- a/lib/csu/amd64/crtn.S
+++ b/lib/csu/amd64/crtn.S
@@ -27,11 +27,11 @@
__FBSDID("$FreeBSD$");
.section .init,"ax",@progbits
- addq $8,%rsp
+ popq %rbp
ret
.section .fini,"ax",@progbits
- addq $8,%rsp
+ popq %rbp
ret
.section .note.GNU-stack,"",%progbits
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 4, 3:46 AM (7 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16960955
Default Alt Text
D40795.id123970.diff (734 B)
Attached To
Mode
D40795: csu: Add the prologue and epilogue to the _init and _fini on x86_64
Attached
Detach File
Event Timeline
Log In to Comment