mirror of
https://github.com/rust-embedded/rust-raspberrypi-OS-tutorials.git
synced 2024-11-11 07:10:59 +00:00
Update README.md
This commit is contained in:
parent
6b4bd0e881
commit
937397d6b2
@ -107,10 +107,10 @@ In addition to the relocation copying, we also need to adjust the branch
|
||||
instruction that jumps to the reset handler, because we want to jump to _the
|
||||
relocated reset handler_, not the original one.
|
||||
|
||||
Since rustc generates RIP-relative jumps now due to the `position independence`,
|
||||
we can leverage this feature and add the same offset to the reset address that
|
||||
we implicitly used for the relocation copying (`2048`). This ensures that we
|
||||
jump to the reset handler _in the relocated loader code_.
|
||||
Since rustc now generates jumps relative to the current instruction due to the
|
||||
`position independence`, we can leverage this feature and add the same offset
|
||||
to the reset address that we implicitly used for the relocation copying (`2048`).
|
||||
This ensures that we jump to the reset handler _in the relocated loader code_.
|
||||
|
||||
## Linker and Boot Code
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user