Skip to content

Fix relocation #28

Open
Open
@Woyten

Description

@Woyten

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions