diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/sysdeps/linux/x86_64/crti.S | 10 | ||||
-rw-r--r-- | libc/sysdeps/linux/x86_64/crtn.S | 17 |
2 files changed, 14 insertions, 13 deletions
diff --git a/libc/sysdeps/linux/x86_64/crti.S b/libc/sysdeps/linux/x86_64/crti.S index 6a29f2bc0..648513739 100644 --- a/libc/sysdeps/linux/x86_64/crti.S +++ b/libc/sysdeps/linux/x86_64/crti.S @@ -1,14 +1,16 @@ /* glibc's sysdeps/x86_64/elf/initfini.c used for reference [PROLOG] */ + + .section .init -.globl _init -.type _init, @function +.global _init +.type _init, @function _init: subq $8, %rsp .section .fini -.globl _fini -.type _fini, @function +.global _fini +.type _fini, @function _fini: subq $8, %rsp diff --git a/libc/sysdeps/linux/x86_64/crtn.S b/libc/sysdeps/linux/x86_64/crtn.S index 292e499a7..f68f9d0a3 100644 --- a/libc/sysdeps/linux/x86_64/crtn.S +++ b/libc/sysdeps/linux/x86_64/crtn.S @@ -2,18 +2,17 @@ .file "initfini.c" - .section .init -.globl _init -.type _init, @function - addq $8, %rsp +.global _init +.type _init, @function + addq $8, %rsp ret -.size _init, .-_init +.size _init,.-_init .section .fini -.globl _fini -.type _fini, @function - addq $8, %rsp +.global _fini +.type _fini, @function + addq $8, %rsp ret -.size _fini, .-_fini +.size _fini, .-_fini |