diff options
author | trimill <trimill@trimillxyz.org> | 2024-01-26 22:29:49 -0500 |
---|---|---|
committer | trimill <trimill@trimillxyz.org> | 2024-01-26 22:29:49 -0500 |
commit | 4aad3cce1d22c39dfa9c0d360737fe6d92f38595 (patch) | |
tree | 9bbd6741e99f7fd1499c221748d7b74f567eb3eb /src/arch/amd64/linker.ld | |
parent | Created basic directory structure (diff) | |
download | corn-4aad3cce1d22c39dfa9c0d360737fe6d92f38595.tar.gz corn-4aad3cce1d22c39dfa9c0d360737fe6d92f38595.tar.bz2 corn-4aad3cce1d22c39dfa9c0d360737fe6d92f38595.zip |
added boilerplate (todo make it amd64)
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) + } +} |