Open
Description
In order to make global variables and dynamic dispatch work, we need to compile binaries conforming to the R_ARM_SBREL32 relocation model.
As far as I understand we need to perform two steps:
- Migrate the code of
tock/userland/libtock/crt0.c
to Rust - Pass compiler flags to the LLVM/LLD toolchain equivalent to:
-msingle-pic-base -mpic-register=r9 -mno-pic-data-is-text-relative