]> git.corax.cc Git - corax/commitdiff
Add symbols to identify the rodata, data, bss sections in the linker script and page...
authorMatthias Kruk <m@m10k.eu>
Thu, 19 Sep 2019 05:30:04 +0000 (14:30 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 19 Sep 2019 05:30:04 +0000 (14:30 +0900)
kernel/linker.ld

index 1a94f80986c67e921925aaf7e1acace99b332705..c49a146085a3c1df7310e2f6269d77b2bfc06a64 100644 (file)
@@ -5,16 +5,20 @@ SECTIONS {
         *(.text)
     }
     .rodata ALIGN (0x1000) : {
+               _corax_rodata = .;
         *(.rodata)
     }
     .data ALIGN (0x1000) : {
+               _corax_data = .;
         *(.data)
     }
-    .bss :{
+    .bss ALIGN (0x1000) : {
+               _corax_bss = .;
         sbss = .;
         *(COMMON)
         *(.bss)
         ebss = .;
     }
-    _mem_start = .;
+       . = ALIGN(0x1000);
+       _mem_start = .;
 }