From 7ce0cd6056fe9cc583de3f9555699e274ad7ff9a Mon Sep 17 00:00:00 2001 From: trimill Date: Wed, 31 Jan 2024 21:19:22 -0500 Subject: reorganize, add sym_lookup --- arch/amd64/linker.ld | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 arch/amd64/linker.ld (limited to 'arch/amd64/linker.ld') diff --git a/arch/amd64/linker.ld b/arch/amd64/linker.ld new file mode 100644 index 0000000..e097f56 --- /dev/null +++ b/arch/amd64/linker.ld @@ -0,0 +1,38 @@ +ENTRY(start) + +SECTIONS { + . = 1M; + + kernel_start = .; + + .boot BLOCK(4K) : ALIGN(4K) + { + *(.multiboot) + } + + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata) + } + + .data BLOCK(4K) : ALIGN(4K) + { + *(.data) + } + + text_start = .; + + .text BLOCK(4K) : ALIGN(4K) + { + *(.text) + } + + text_end = .; + + .bss BLOCK(4K) : ALIGN(4K) + { + *(.bss) + } + + kernel_end = .; +} -- cgit v1.2.3-freya