diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-02 10:37:08 -0500 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-02-02 10:38:56 -0500 |
| commit | 6b76eb48066a5fb0c45b108fd3eed1743029da4f (patch) | |
| tree | 126a4263c395a2b83e117fd8703e1dbeb96edcbc /kernel/boot/init/crti.s | |
| parent | c216a2000179a133e1e38852f55261f4bf9f08f6 (diff) | |
build: Use the custom linker and nasm
Diffstat (limited to 'kernel/boot/init/crti.s')
| -rw-r--r-- | kernel/boot/init/crti.s | 54 |
1 files changed, 25 insertions, 29 deletions
diff --git a/kernel/boot/init/crti.s b/kernel/boot/init/crti.s index 8f86ffa..e3ddc32 100644 --- a/kernel/boot/init/crti.s +++ b/kernel/boot/init/crti.s @@ -1,33 +1,29 @@ -/* - * bubbl - * Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com> - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <http://www.gnu.org/licenses/>. - */ +;; +;; bubbl +;; Copyright (C) 2024-2025 Raghuram Subramani <raghus2247@gmail.com> +;; +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. +;; +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see <http://www.gnu.org/licenses/>. +;; -.section .init -.global _init -.type _init, @function +section .init +global _init _init: - push %ebp - mov %esp, %ebp - /* gcc will nicely put the contents of crtbegin.o's .init section here. */ + push ebp + mov ebp, esp -.section .fini -.global _fini -.type _fini, @function +section .fini +global _fini _fini: - push %ebp - mov %esp, %ebp - /* gcc will nicely put the contents of crtbegin.o's .fini section here. */ + push ebp + mov ebp, esp |
