Resolve the observed userspace Rust allocation marker #535

Open
erikinkinen wants to merge 2 commits from feature/native-allocation-marker into feature/native-package-version-input
Owner

The ordinary native service link now supplies the observed Rust no-allocation-shim marker as an empty userspace function. This matches the selected compiler's code generation, while retaining the original assembler/linker owners and final unresolved-symbol checks.

Only an exact, otherwise unresolved marker from the held root objects is supplied. Unknown forms and mixed compiler namespaces refuse. Existing root/DSO definitions remain intact. The helper adds no allocator, allocation-error handler, panic policy or privileged instructions.

Depends on #534; enables the real Rust workload in #532.

  • Define the finite marker contract and link it through original native owners.
  • Verify actual LLVM object/link output and preserve unrelated-symbol refusals.
  • Preserve all 55 ordinary-service controls.
  • Build the matching native SHA2 artifact with #537 and #540.
  • Demonstrate matching-image guest execution and teardown.
The ordinary native service link now supplies the observed Rust no-allocation-shim marker as an empty userspace function. This matches the selected compiler's [code generation](https://github.com/rust-lang/rust/blob/430d6eddfc6a455ca4a0137c0822a982cccd3b2b/compiler/rustc_codegen_llvm/src/allocator.rs#L76), while retaining the original assembler/linker owners and final unresolved-symbol checks. Only an exact, otherwise unresolved marker from the held root objects is supplied. Unknown forms and mixed compiler namespaces refuse. Existing root/DSO definitions remain intact. The helper adds no allocator, allocation-error handler, panic policy or privileged instructions. Depends on #534; enables the real Rust workload in #532. - [x] Define the finite marker contract and link it through original native owners. - [x] Verify actual LLVM object/link output and preserve unrelated-symbol refusals. - [x] Preserve all 55 ordinary-service controls. - [x] Build the matching native SHA2 artifact with #537 and #540. - [ ] Demonstrate matching-image guest execution and teardown.
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: Link the observed allocation marker under original service owners
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 12s
Coreutils provider graph / coreutils (push) Successful in 4m24s
CI / rust (push) Successful in 7m17s
CI / host_zero (push) Failing after 14m31s
CI / host_one (push) Failing after 18m17s
CI / host_three (push) Failing after 20m8s
CI / host_two (push) Failing after 21m56s
CI / integration (push) Has been skipped
f5c52293a1
Select unresolved marker references from the actual held root objects, retain original root and DSO definitions, and assemble the verified empty marker through the existing native output owner. Keep final undefined-symbol and artifact checks unchanged.
erikinkinen added this to the Alpha 1 milestone 2026-11-07 20:11:37 +01:00
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 12s
Coreutils provider graph / coreutils (push) Successful in 4m24s
CI / rust (push) Successful in 7m17s
CI / host_zero (push) Failing after 14m31s
CI / host_one (push) Failing after 18m17s
CI / host_three (push) Failing after 20m8s
CI / host_two (push) Failing after 21m56s
CI / integration (push) Has been skipped
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'feature/native-allocation-marker:feature/native-allocation-marker'
git switch 'feature/native-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-package-version-input'
git merge --no-ff 'feature/native-allocation-marker'
git switch 'feature/native-allocation-marker'
git rebase 'feature/native-package-version-input'
git switch 'feature/native-package-version-input'
git merge --ff-only 'feature/native-allocation-marker'
git switch 'feature/native-allocation-marker'
git rebase 'feature/native-package-version-input'
git switch 'feature/native-package-version-input'
git merge --no-ff 'feature/native-allocation-marker'
git switch 'feature/native-package-version-input'
git merge --squash 'feature/native-allocation-marker'
git switch 'feature/native-package-version-input'
git merge --ff-only 'feature/native-allocation-marker'
git switch 'feature/native-package-version-input'
git merge 'feature/native-allocation-marker'
git push origin 'feature/native-package-version-input'
Sign in to join this conversation.
No description provided.