summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/arch/x86_64/crti.S
blob: af58391ae88f1764fe20b7e860ecf1dc3a27c50f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * Copyright (c) 2021, Daniel Bertalan <dani@danielbertalan.dev>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

.section .init, "ax", @progbits
.align 4
.global _init
.type _init, @function
_init:
    pushq %rbp
    movq %rsp, %rbp
    andq $-16, %rsp

.section .fini, "ax", @progbits
.align 4
.global _fini
.type _fini, @function
_fini:
    pushq %rbp
    movq %rsp, %rbp
    andq $-16, %rsp