06 - Chainloader: understanding core concepts #152
-
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! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 the ARM ARM: |
Beta Was this translation helpful? Give feedback.
The link address is what the linker uses when it does things like resolving
branches
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…