]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Changed kernel_phys_start to not include the bootstrap code, so as to recover its...
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Sun, 8 May 2022 21:12:23 +0000 (23:12 +0200)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Sun, 8 May 2022 21:12:23 +0000 (23:12 +0200)
linker.ld

index 4c35e4128717acc81713958e2e99af62694113d1..ae3dd3a5f6168260b1af05d5826e7fbba88c63e0 100644 (file)
--- a/linker.ld
+++ b/linker.ld
@@ -6,15 +6,15 @@ SECTIONS {
        . = 1M;
 
        . = ALIGN(4K);
-       _kernel_phys_start = .;
        .bootstrap ALIGN(4K) : {
                *(.multiboot_header)
                . = ALIGN(4K);
                *(.bootstrap_text)
        }
-
        . += KERNEL_VMA;
 
+       . = ALIGN(4K);
+       _kernel_phys_start = . - KERNEL_VMA;
        .text ALIGN(4K) : AT(ADDR(.text) - KERNEL_VMA) {
                *(.text)
                *(.text*)