From 2ad90dcb5c87f4553f6831bd760e23969c6f7cd4 Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Wed, 7 Oct 2020 20:18:49 -0700 Subject: [PATCH] [kernel] Remove old unused crti/crtn These were never used because clang generates .ctors and .dtors instead of .init and .fini --- modules.yaml | 2 -- src/kernel/crti.s | 14 -------------- src/kernel/crtn.s | 10 ---------- 3 files changed, 26 deletions(-) delete mode 100644 src/kernel/crti.s delete mode 100644 src/kernel/crtn.s diff --git a/modules.yaml b/modules.yaml index 285561a..2d227c3 100644 --- a/modules.yaml +++ b/modules.yaml @@ -10,7 +10,6 @@ modules: includes: - src/kernel source: - - src/kernel/crti.s - src/kernel/apic.cpp - src/kernel/assert.cpp - src/kernel/boot.s @@ -59,7 +58,6 @@ modules: - src/kernel/task.s - src/kernel/vm_mapper.cpp - src/kernel/vm_space.cpp - - src/kernel/crtn.s boot: kind: exe diff --git a/src/kernel/crti.s b/src/kernel/crti.s deleted file mode 100644 index 3f1d0ae..0000000 --- a/src/kernel/crti.s +++ /dev/null @@ -1,14 +0,0 @@ -section .init -global _init:function -_init: - push rbp - mov rbp, rsp - ; Control flow falls through to other .init sections - -section .fini -global _fini:function -_fini: - push rbp - mov rbp, rsp - ; Control flow falls through to other .fini sections - diff --git a/src/kernel/crtn.s b/src/kernel/crtn.s deleted file mode 100644 index 3a960c4..0000000 --- a/src/kernel/crtn.s +++ /dev/null @@ -1,10 +0,0 @@ -section .init - ; Control flow falls through to here from other .init sections - pop rbp - ret - -section .fini - ; Control flow falls through to here from other .fini sections - pop rbp - ret -