diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-10-03 14:04:31 +0200 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-10-03 14:04:31 +0200 |
commit | 24ab4678b96dec56129f7e36b9304b6767777e0a (patch) | |
tree | 1ab41614fc0b6e20322ef44ec3f7a29bc3bc4877 /linker.ld | |
parent | 47c327eac36e78793173496f18b56f0f2159d648 (diff) | |
download | rpi-MMU-example-24ab4678b96dec56129f7e36b9304b6767777e0a.tar.gz rpi-MMU-example-24ab4678b96dec56129f7e36b9304b6767777e0a.zip |
specify load address only in linker script; change it to 0x10000 (for now); avoid padding
Diffstat (limited to 'linker.ld')
-rw-r--r-- | linker.ld | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -3,8 +3,11 @@ ENTRY(_start) SECTIONS { /* Starts at LOADER_ADDR. */ - . = 0x8000; - /* For AArch64, use . = 0x80000; */ + /* Warning! Internet says RPis in 32-bit mode load kernel at 0x8000! */ + /* My experiments do, however, show, that qemu emulating RPi2 */ + /* Loads the kernel at 0x10000! (took some pain to find out) */ + . = 0x10000; + /* For AArch64, use . = 0x80000; Unless this too is wrong */ __start = .; __text_start = .; .text : |