Skip to content

Commit

Permalink
Merge pull request #953 from no92/crtin
Browse files Browse the repository at this point in the history
  • Loading branch information
no92 authored Nov 30, 2023
2 parents 66fad1a + e21d77c commit 472c145
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
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

0 comments on commit 472c145

Please sign in to comment.