Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sysdeps/managarm: push/pop rax in crt[in].o #953

Merged
merged 1 commit into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sysdeps/managarm/x86_64/crt-src/crti.S
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
.globl _init
.type _init,@function
_init:
push %rax

.section .fini
.globl _fini
.type _fini,@function
_fini:
push %rax

.section .note.GNU-stack,"",%progbits
10 changes: 6 additions & 4 deletions sysdeps/managarm/x86_64/crt-src/crtn.S
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
.ident "x86_64-managarm-mlibc crtn"
.ident "x86_64-managarm-mlibc crtn"

.section .init
.section .init
pop %rax
ret

.section .fini
.section .fini
pop %rax
ret

.section .note.GNU-stack,"",%progbits
.section .note.GNU-stack,"",%progbits
Loading