diff --git a/arch/i386/linker.ld b/arch/i386/linker.ld new file mode 100755 index 0000000..d766d45 --- /dev/null +++ b/arch/i386/linker.ld @@ -0,0 +1,24 @@ +ENTRY(_start) + +SECTIONS +{ + . = 1M; + + .text BLOCK (4K) : ALIGN (4K) { + *(.multiboot) + *(.text) + } + + .rodata BLOCK (4K) : ALIGN (4K) { + *(.rodata) + } + + .data BLOCK (4K) : ALIGN (4K) { + *(.data) + } + + .bss BLOCK (4K) : ALIGN (4K) { + *(COMMON) + *(.bss) + } +}