diff options
Diffstat (limited to 'src/arch/amd64/linker.ld')
-rw-r--r-- | src/arch/amd64/linker.ld | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/arch/amd64/linker.ld b/src/arch/amd64/linker.ld new file mode 100644 index 0000000..4e796e2 --- /dev/null +++ b/src/arch/amd64/linker.ld @@ -0,0 +1,25 @@ +ENTRY(start) + +SECTIONS { + . = 1M; + + .boot BLOCK(4K) : ALIGN(4K) + { + *(.multiboot) + } + + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata) + } + + .text BLOCK(4K) : ALIGN(4K) + { + *(.text) + } + + .bss BLOCK(4K) : ALIGN(4K) + { + *(.bss) + } +} |