fix: corner cases when printing large content through term interface
[lunaix-os.git] / lunaix-os / link / linker.ld
index c91bcb2100e728113e3c6e1f61aaed373ceb6ea5..3941b361697ad75987bf8f33170ff9eb41ecfa2b 100644 (file)
@@ -130,21 +130,31 @@ SECTIONS {
 
         . = ALIGN(8);
 
-        PROVIDE(__lga_lunainit_call_on_boot_start = .);
+        PROVIDE(__lga_lunainit_on_earlyboot_start = .);
+        
+        KEEP(*(.lga.lunainit.c_earlyboot));
+
+        PROVIDE(__lga_lunainit_on_earlyboot_end = .);
+
+        /* ---- */
+
+        . = ALIGN(8);
+
+        PROVIDE(__lga_lunainit_on_boot_start = .);
         
         KEEP(*(.lga.lunainit.c_boot));
 
-        PROVIDE(__lga_lunainit_call_on_boot_end = .);
+        PROVIDE(__lga_lunainit_on_boot_end = .);
 
         /* ---- */
 
         . = ALIGN(8);
 
-        PROVIDE(__lga_lunainit_call_on_postboot_start = .);
+        PROVIDE(__lga_lunainit_on_postboot_start = .);
         
         KEEP(*(.lga.lunainit.c_postboot));
 
-        PROVIDE(__lga_lunainit_call_on_postboot_end = .);
+        PROVIDE(__lga_lunainit_on_postboot_end = .);
 
     }