1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 03:55:06 +00:00
serenity/Userland/Libraries/LibC/arch/i386/crtn.S
Daniel Bertalan a88f7c99fe LibC: Use our implementation of crti.o and crtn.o
We have had these for quite a while, but we didn't compile them, and
used GCC's version instead. Clang does not come with these, so we have
to provide our own implementation.

Our implementation follows what `musl` and `FreeBSD` do, so this should
work fine, even if documentation can hardly be found for them.
2021-07-14 13:12:25 +02:00

15 lines
268 B
ArmAsm

/*
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
.section .init, "ax", @progbits
movl %ebp, %esp
popl %ebp
retl
.section .fini, "ax", @progbits
movl %ebp, %esp
popl %ebp
retl