oxytoxin

unix-like kernel
git clone git://git.evenfri.xyz/oxytoxin.git
Log | Files | Refs | README | LICENSE

linker.ld (306B)


      1 ENTRY(_start)
      2 
      3 SECTIONS {
      4 	. = 1M;
      5 
      6 	.text BLOCK(4K) : ALIGN(4K) {
      7 		*(.multiboot)
      8 		*(.text)
      9 	}
     10 
     11 	/* ro data */
     12 	.rodata BLOCK(4K) : ALIGN(4K) {
     13 		*(.rodata)
     14 	}
     15 
     16 	/* rw data */
     17 	.data BLOCK(4K) : ALIGN(4K) {
     18 		*(.data)
     19 	}
     20 
     21 	/* rw data and stack */
     22 	.bss BLOCK(4K) : ALIGN(4K) {
     23 		*(COMMON)
     24 		*(.bss)
     25 	}
     26 }