diff options
Diffstat (limited to 'linker.ld')
-rw-r--r-- | linker.ld | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; |