Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork841
06 - Chainloader: understanding core concepts#152
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
Hey, I have been following along the tutorial and reached the 6th chapter. I am having trouble understanding a few concepts and the assembly in boot.s.
Thanks in advance! |
BetaWas this translation helpful?Give feedback.
All reactions
what is a "link address"? I know the rpi loads the kernel to 0x8000 (as specified in the link.ld file), but why do we need to specify the "link address" in the linker file and not just copy wherever we want?
The link address is what the linker uses when it does things like resolvingbranches
or calculating addresses. What you can do to get an idea ismake objdump | less
, and look around a bit. And then change the link address in the script (do a major change, that will make it more obvious to the eye), and do amake objdump | less
again and look at the difference.
The important part to understand here is that whatever you put into the script DOES NOT change the fact that the RPi bootloa…
Replies: 1 comment 1 reply
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
The link address is what the linker uses when it does things like resolving The important part to understand here is that whatever you put into the script DOES NOT change the fact that the RPi bootloaders will load the binary at
I think it could make sense to skip forward and additionally read the first parts of the README of chapter 15 if you want to get more into the details here. I hope this sheds some more light on what's going on.
Post-indexed addressing mode is used. Here is the relevant snippet from theARM ARM: |
BetaWas this translation helpful?Give feedback.
All reactions
-
Thanks for the detailed reply, it helped a lot :) |
BetaWas this translation helpful?Give feedback.