aboutsummaryrefslogtreecommitdiff
path: root/loader_stage1.ld
diff options
context:
space:
mode:
Diffstat (limited to 'loader_stage1.ld')
-rw-r--r--loader_stage1.ld11
1 files changed, 10 insertions, 1 deletions
diff --git a/loader_stage1.ld b/loader_stage1.ld
index ce11095..507e367 100644
--- a/loader_stage1.ld
+++ b/loader_stage1.ld
@@ -6,8 +6,17 @@ SECTIONS
/* Warning! Internet says RPis in 32-bit mode load binary at 0x8000! */
/* My experiments do, however, show, that qemu emulating RPi2 */
/* loads it at 0x10000! (took some pain to find out) */
- . = 0x10000;
+
+ /* . = 0x10000; */
+
+ /* rpi-open-firmware, on the other hand, loads it at 0x2000000 */
+ /* (and this should be not-so-hard to change by modifying the */
+ /* firmware */
+
+ . = 0x2000000;
+
/* For AArch64, use . = 0x80000; Unless this too is wrong */
+
__start = .;
__text_start = .;
.text :