summaryrefslogtreecommitdiff
path: root/arch/amd64/linker.ld
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-02-01 14:43:11 -0500
committerFreya Murphy <freya@freyacat.org>2024-02-01 14:43:11 -0500
commit341c95f5357c451e2420fb81e64ec6b42c40e124 (patch)
tree725afc747d5f0ca9ad4b5e8558f5f1cf178fae9b /arch/amd64/linker.ld
parentacpi, fix mboot memory map, fix kalloc, fix virtalloc node allocator, add kpr... (diff)
downloadcorn-341c95f5357c451e2420fb81e64ec6b42c40e124.tar.gz
corn-341c95f5357c451e2420fb81e64ec6b42c40e124.tar.bz2
corn-341c95f5357c451e2420fb81e64ec6b42c40e124.zip
update makefile
Diffstat (limited to 'arch/amd64/linker.ld')
-rw-r--r--arch/amd64/linker.ld52
1 files changed, 26 insertions, 26 deletions
diff --git a/arch/amd64/linker.ld b/arch/amd64/linker.ld
index e097f56..7a34a9e 100644
--- a/arch/amd64/linker.ld
+++ b/arch/amd64/linker.ld
@@ -1,38 +1,38 @@
ENTRY(start)
SECTIONS {
- . = 1M;
-
- kernel_start = .;
+ . = 1M;
- .boot BLOCK(4K) : ALIGN(4K)
- {
- *(.multiboot)
- }
+ kernel_start = .;
- .rodata BLOCK(4K) : ALIGN(4K)
- {
- *(.rodata)
- }
+ .boot BLOCK(4K) : ALIGN(4K)
+ {
+ *(.multiboot)
+ }
- .data BLOCK(4K) : ALIGN(4K)
- {
- *(.data)
- }
+ .rodata BLOCK(4K) : ALIGN(4K)
+ {
+ *(.rodata)
+ }
- text_start = .;
+ .data BLOCK(4K) : ALIGN(4K)
+ {
+ *(.data)
+ }
- .text BLOCK(4K) : ALIGN(4K)
- {
- *(.text)
- }
+ text_start = .;
- text_end = .;
+ .text BLOCK(4K) : ALIGN(4K)
+ {
+ *(.text)
+ }
- .bss BLOCK(4K) : ALIGN(4K)
- {
- *(.bss)
- }
+ text_end = .;
- kernel_end = .;
+ .bss BLOCK(4K) : ALIGN(4K)
+ {
+ *(.bss)
+ }
+
+ kernel_end = .;
}