From 0c0b353572da69a01b7f1b3d940b779ff9fcfb26 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 15 Oct 2019 16:57:45 +0200 Subject: adjust for rpi-open-firmware --- linker.ld | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linker.ld') diff --git a/linker.ld b/linker.ld index c9a91df..e7bfdb8 100644 --- a/linker.ld +++ b/linker.ld @@ -9,8 +9,11 @@ SECTIONS /* Since we're using a bootloader now, we can compile the kernel */ /* for 0x8000 and bootloader will load it properly (although it */ /* itself still has to be compiled for 0x10000) */ + /* rpi-open-firmware, ont he other hand, loads kernel at 0x2000000 */ + /* This issue is also to be avoided by the use of bootloader */ . = 0x8000; /* For AArch64, use . = 0x80000; Unless this too is wrong in qemu… */ + __start = .; __text_start = .; .text : -- cgit v1.2.3