pub unsafe extern "C" fn relocate(
mapped_addr: usize,
vaddr: usize,
dynamic_addr: usize,
)
Expand description
Apply relocations to the image mapped at mapped_addr
so that it can be run
at vaddr
, using the _DYNAMIC section at dynamic_addr
.
ยงSafety
The caller must ensure that this is called only during startup, with the appropriate arguments, since this updates code and data across the binary.