aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/linker.ld
blob: 3e209fca3bb091db464a32e23b28ddc0cbc9c2d0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
ENTRY(start)
OUTPUT_FORMAT(elf32-i386)

SECTIONS {
   . = 0xC0100000;
 
   .text : AT(ADDR(.text) - 0xC0000000) {
       *(.text)
       *(.rodata*)
   }
 
   .data ALIGN (0x1000) : AT(ADDR(.data) - 0xC0000000) {
       *(.data)
   }
 
   .bss : AT(ADDR(.bss) - 0xC0000000) {
       _sbss = .;
       *(COMMON)
       *(.bss)
       _ebss = .;
   }

   end = .;
}