aboutsummaryrefslogtreecommitdiff
path: root/linker.ld
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-12-28 18:53:16 +0100
committerWojtek Kosior <kwojtus@protonmail.com>2019-12-28 18:53:16 +0100
commit38afee0bfe051f1c1e5b9426395eb50b9d8a7bc2 (patch)
tree00a0c4ebdce4a230684172717d96baa5afc0a4c1 /linker.ld
parent7d5496d130100e621d6f192815ac67a5cad37f37 (diff)
downloadrpi-MMU-example-38afee0bfe051f1c1e5b9426395eb50b9d8a7bc2.tar.gz
rpi-MMU-example-38afee0bfe051f1c1e5b9426395eb50b9d8a7bc2.zip
correct the notion of PIC in the comment
Diffstat (limited to 'linker.ld')
-rw-r--r--linker.ld7
1 files changed, 4 insertions, 3 deletions
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;