From 38afee0bfe051f1c1e5b9426395eb50b9d8a7bc2 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 28 Dec 2019 18:53:16 +0100 Subject: correct the notion of PIC in the comment --- linker.ld | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'linker.ld') diff --git a/linker.ld b/linker.ld index 673d7e2..444bbf6 100644 --- a/linker.ld +++ b/linker.ld @@ -9,8 +9,9 @@ SECTIONS /* kernel at 0x2000000! */ /* This is not really a problem, since: */ /* 1. We can use our bootloader to load the kernel at 0x8000 */ - /* 2. We compile kernel with -fPIC, so it should be able to */ - /* work with any load addr. */ + /* 2. Stage 1 of the bootloader is written in careful */ + /* assembly, so that the loader itself should work */ + /* regardless of where it is loaded. */ /* 3. In qemu, we can load kernel.elf instead of raw binary */ /* (qemu will do the right thing then) */ @@ -23,9 +24,9 @@ SECTIONS { __kernel_start = .; KEEP(boot.o) - *(EXCLUDE_FILE (ramfs_embeddable.o libkernel.o interrupt_vector.o interrupts.o) *) . = ALIGN(4); ramfs_embeddable.o + *(EXCLUDE_FILE (libkernel.o interrupt_vector.o interrupts.o) *) __kernel_end = .; } __kernel_size = __kernel_end - __kernel_start; -- cgit v1.2.3