Skip to content

06 - Chainloader: understanding core concepts #152

Discussion options

You must be logged in to vote

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 resolving branches or calculating addresses. What you can do to get an idea is make 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 a make 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

Comment options

You must be logged in to vote
1 reply
@0xmatia
Comment options

Answer selected by 0xmatia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants