rust: remove target JSON requirement#450
Merged
Ivan-Velickovic merged 1 commit intoseL4:mainfrom Mar 25, 2026
Merged
Conversation
dfa20b0 to
2475b38
Compare
99598f5 to
1afee70
Compare
aarch64-unknown-none, riscv64-unknown-none-elf, x86_64-unknown-none
are all valid rust targets.
We need to add `-C relocation-model=static` to our builds of the
initialiser because of a linking error that happens otherwise.
```
= note: some arguments are omitted. use `--verbose` to show all
linker arguments
= note: rust-lld: error: relocation R_X86_64_32S cannot be used
against symbol '__sel4_runtime_common__stack_bottom';
>>> defined in /deps/libsel4_capdl_initializer-b9b7443ffc460d73.rlib
>>> referenced by sel4_runtime_common.677741bee5ec9ce6-cgu.0
>>> sel4_runtime_common-001ebf4bff8b906e
.sel4_runtime_common.677741bee5ec9ce6-cgu.0.rcgu.o
:(.text.__sel4_runtime_common__stack_init+0x4)
in archive /deps/libsel4_runtime_common-001ebf4bff8b906e.rlib
```
Signed-off-by: Julia Vassiliki <julia.vassiliki@unsw.edu.au>
1afee70 to
334cda5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
aarch64-unknown-none, riscv64-unknown-none-elf, x86_64-unknown-none are all valid rust targets.
We need to add
-C relocation-model=staticto our builds of the initialiser because of a linking error that happens otherwise.Unfortunately we can't remove the targets from the rust example, because the rust-sel4 depends on
__sel4_ipc_buffer_objnote: rust-lld: error: undefined symbol: __sel4_ipc_buffer_obj.