WIP: Supply the Rust allocation marker in userspace graph links #536

Draft
erikinkinen wants to merge 6 commits from feature/native-graph-allocation-marker into feature/native-artifact-graph-execution
Owner

Userspace graph links can reference Rust’s no-allocation-shim marker through root code or the selected alloc archive. Generate the compiler’s empty hidden function through the original assembler/link jobs, without importing the Kernel allocation-error handler. Unknown marker ABIs and unrelated unresolved symbols still fail.

  • Implement marker selection and graph-owned assembly.
  • Complete matching full-graph and guest acceptance.

Depends on #531.

Userspace graph links can reference Rust’s no-allocation-shim marker through root code or the selected alloc archive. Generate the compiler’s empty hidden function through the original assembler/link jobs, without importing the Kernel allocation-error handler. Unknown marker ABIs and unrelated unresolved symbols still fail. - [x] Implement marker selection and graph-owned assembly. - [ ] Complete matching full-graph and guest acceptance. Depends on [#531](https://git.erikinkinen.fi/erix/integration/pulls/531).
erikinkinen added this to the Alpha 1 milestone 2026-11-07 20:12:24 +01:00
Select only the actual v0 no-allocation-shim marker function and encode its empty compiler-defined C ABI. Keep allocation, error handling and unrelated undefined symbols outside this contract.
fix: Retain userspace allocation markers in graph links
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
dd00a53e38
Inspect the actual root objects and held alloc archive before selecting the compiler’s empty no-allocation-shim marker. Produce it through the original assembler/link job list without importing Kernel error handling or satisfying unrelated unresolved symbols.
fix: Preserve unrelated native symbol bytes
Some checks failed
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
69464b4f5c
Decode only marker candidates during graph planning so unrelated non-UTF-8 ELF names remain the final linker’s responsibility.
fix: Preserve compiler marker export visibility
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
348da6fdc6
Match the selected Rust compiler allocation marker visibility so selected dynamic libraries can resolve its empty function. Keep actual object and linked dynamic-symbol checks alongside the byte-level contract.
test: Inspect allocation marker visibility with readelf
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
CI / rust (push) Has been cancelled
CI / host_zero (push) Has been cancelled
CI / host_one (push) Has been cancelled
CI / host_two (push) Has been cancelled
CI / host_three (push) Has been cancelled
CI / integration (push) Has been cancelled
Coreutils provider graph / coreutils (push) Has been cancelled
Markdown / markdown (push) Has been cancelled
d727a3c67f
Use the actual fixture symbol table and existing dynamic-symbol decoder across graph source branches, without requiring an unavailable general symbol-table helper.
fix: Keep graph marker checks enrolled
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 16s
CI / rust (push) Successful in 7m7s
Coreutils provider graph / coreutils (push) Successful in 4m47s
CI / host_zero (push) Failing after 20m41s
CI / host_two (push) Failing after 21m30s
CI / host_one (push) Failing after 22m50s
CI / host_three (push) Failing after 24m13s
CI / integration (push) Has been skipped
574b6cd46d
Retain the marker syntax command in the ordered host-check inventory and describe its actual compiler-compatible export visibility.
Some checks failed
CI / rust (pull_request) Has been skipped
CI / host_zero (pull_request) Has been skipped
CI / host_one (pull_request) Has been skipped
CI / host_two (pull_request) Has been skipped
CI / host_three (pull_request) Has been skipped
CI / integration (pull_request) Has been skipped
Coreutils provider graph / coreutils (pull_request) Has been skipped
Markdown / markdown (pull_request) Has been skipped
Markdown / markdown (push) Successful in 16s
CI / rust (push) Successful in 7m7s
Coreutils provider graph / coreutils (push) Successful in 4m47s
CI / host_zero (push) Failing after 20m41s
CI / host_two (push) Failing after 21m30s
CI / host_one (push) Failing after 22m50s
CI / host_three (push) Failing after 24m13s
CI / integration (push) Has been skipped
This pull request has changes conflicting with the target branch.
  • scripts/check-python-host-syntax.sh
  • scripts/dynlink_user_allocation_marker.py
  • tests/fixtures/python-host-syntax-commands.json
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/native-graph-allocation-marker:feature/native-graph-allocation-marker'
git switch 'feature/native-graph-allocation-marker'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'feature/native-artifact-graph-execution'
git merge --no-ff 'feature/native-graph-allocation-marker'
git switch 'feature/native-graph-allocation-marker'
git rebase 'feature/native-artifact-graph-execution'
git switch 'feature/native-artifact-graph-execution'
git merge --ff-only 'feature/native-graph-allocation-marker'
git switch 'feature/native-graph-allocation-marker'
git rebase 'feature/native-artifact-graph-execution'
git switch 'feature/native-artifact-graph-execution'
git merge --no-ff 'feature/native-graph-allocation-marker'
git switch 'feature/native-artifact-graph-execution'
git merge --squash 'feature/native-graph-allocation-marker'
git switch 'feature/native-artifact-graph-execution'
git merge --ff-only 'feature/native-graph-allocation-marker'
git switch 'feature/native-artifact-graph-execution'
git merge 'feature/native-graph-allocation-marker'
git push origin 'feature/native-artifact-graph-execution'
Sign in to join this conversation.
No description provided.