aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-03-11 11:42:29 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-03-11 11:42:29 +0200
commite093bdeb10ec79a5e22a9a792c098e876ed91a63 (patch)
tree06211324ae53c7a959dad8afb99f13e8c48463f5 /linker.ld
parentvmm: display segment map info (diff)
downloadkernel.cpp-e093bdeb10ec79a5e22a9a792c098e876ed91a63.tar.xz
Add linker script to ld depends
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld5
1 files changed, 3 insertions, 2 deletions
diff --git a/linker.ld b/linker.ld
index e9f1d73..9383b44 100644
--- a/linker.ld
+++ b/linker.ld
@@ -10,17 +10,18 @@ SECTIONS
* early in the image or the bootloader won't recognize the file format.
*/
. = 0;
- _kernel_start = .;
.multiboot : {
*(.multiboot.header)
- *(.multiboot.text)
}
/* Begin putting sections at 1 MiB */
+ /* TODO load sections at VADDR_BASE rather than at VADDR_BASE + 1M */
. = VADDR_BASE + 1M;
+ _kernel_start = .;
.text ALIGN(4K) : AT(ADDR(.text) - VADDR_BASE) {
begin_text = .;
+ *(.multiboot.text)
*(.text*)
end_text = .;
}