2023-01-25 19:05:47 +02:00
|
|
|
/* x86-64 crti.s */
|
|
|
|
.section .init
|
|
|
|
.global _init
|
|
|
|
.type _init, @function
|
|
|
|
_init:
|
|
|
|
pushq %rbp
|
|
|
|
movq %rsp, %rbp
|
|
|
|
/* gcc will nicely put the contents of crtbegin.o's .init section here. */
|
|
|
|
|
|
|
|
.section .fini
|
|
|
|
.global _fini
|
|
|
|
.type _fini, @function
|
|
|
|
_fini:
|
|
|
|
pushq %rbp
|
|
|
|
movq %rsp, %rbp
|
|
|
|
/* gcc will nicely put the contents of crtbegin.o's .fini section here. */
|
2024-08-26 14:04:58 +03:00
|
|
|
|
|
|
|
.section .init_array
|
|
|
|
.global __init_array_start
|
|
|
|
__init_array_start:
|
|
|
|
|
|
|
|
.section .fini_array
|
|
|
|
.global __fini_array_start
|
|
|
|
__fini_array_start:
|