build: quote mangled xbtp logging symbols in global_asm #43

Closed
github-bot wants to merge 1 commit from gh-pr/43/head into gh-pr/43/base
Owner

@⁠figmasigma122343-bot on GitHub · 2026-11-21 18:59 UTC · original
figmasigma122343-bot:build/xbtp-logging-thunks → main · +4 −8 · 1 files · 102 commits · closed without merging

Tasks

  • Replace the global_asm! call {sym} operands with quoted mangled names
  • Build xbtp on the current Rust toolchain
  • Run the 115 xbtp library tests
  • The 3 console_fixed oracle tests still require the private console images (environment prerequisite, not this PR)

Problem

Current Rust/LLVM rejects the unquoted ?LogErrorV@@YAXPEBDPEAD@Z, ?LogWarningV@@YAXPEBDPEAD@Z, ?LogInfoV@@YAXPEBDPEAD@Z and ?KdDbgPrintV@@YAXPEBD0PEAD@Z operands in the logging thunks:

error: unknown token in expression
15 | call ?LogErrorV@@YAXPEBDPEAD@Z

Change

The four global_asm! calls now use the quoted mangled names directly and the sym operands are removed. This is a symbol-spelling change only; the thunks keep their register/stack layout and exported names.

Before / after

xbtp logging thunks before/after

Verification

cargo test -p xbtp --lib

Observed:

  • xbtp library tests: 115 passed; 0 failed.
  • cargo test -p xbtp additionally runs the console_fixed oracle tests, which assert images.len() >= 4 and need the private console DLL images. They fail on a clean checkout for that missing fixture, not because of this change.

Scope

This PR only fixes the assembly symbol spelling needed to build on the current toolchain. It does not change any xbtp behavior or export status.

**@⁠figmasigma122343-bot** on GitHub · 2026-11-21 18:59 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/43) `figmasigma122343-bot:build/xbtp-logging-thunks` → `main` · +4 −8 · 1 files · 102 commits · closed without merging ## Tasks - [x] Replace the `global_asm!` `call {sym}` operands with quoted mangled names - [x] Build `xbtp` on the current Rust toolchain - [x] Run the 115 `xbtp` library tests - [ ] The 3 `console_fixed` oracle tests still require the private console images (environment prerequisite, not this PR) ## Problem Current Rust/LLVM rejects the unquoted `?LogErrorV@@YAXPEBDPEAD@Z`, `?LogWarningV@@YAXPEBDPEAD@Z`, `?LogInfoV@@YAXPEBDPEAD@Z` and `?KdDbgPrintV@@YAXPEBD0PEAD@Z` operands in the logging thunks: ```text error: unknown token in expression 15 | call ?LogErrorV@@YAXPEBDPEAD@Z ``` ## Change The four `global_asm!` calls now use the quoted mangled names directly and the `sym` operands are removed. This is a symbol-spelling change only; the thunks keep their register/stack layout and exported names. ## Before / after ![xbtp logging thunks before/after](https://raw.githubusercontent.com/figmasigma122343-bot/xbox-emulator/assets/progress-2080/xbtp-thunks-diff.png) ## Verification ```powershell cargo test -p xbtp --lib ``` Observed: - `xbtp` library tests: **115 passed; 0 failed**. - `cargo test -p xbtp` additionally runs the `console_fixed` oracle tests, which assert `images.len() >= 4` and need the private console DLL images. They fail on a clean checkout for that missing fixture, not because of this change. ## Scope This PR only fixes the assembly symbol spelling needed to build on the current toolchain. It does not change any xbtp behavior or export status.
Current Rust/LLVM rejects the unquoted ?LogErrorV@@..., ?LogWarningV@@..., ?LogInfoV@@... and ?KdDbgPrintV@@... operands. Call the quoted mangled names directly so the crate builds on the current toolchain.

cargo test -p xbtp --lib: 115 passed. The three console_fixed oracle tests still need the private console images.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:08:15 +00:00
github-bot closed this pull request 2026-11-26 06:08:15 +00:00
Author
Owner

@⁠omonkeyz on GitHub · 2026-11-22 13:12 UTC · original

Main's history was rewritten, which auto-closed this PR (sorry for the noise). Closing: the existing sym operands build and pass here on cargo 1.100. Please reopen with a toolchain version that fails.

**@⁠omonkeyz** on GitHub · 2026-11-22 13:12 UTC · [original](https://github.com/omonkeyz/xbox-emulator/pull/43#issuecomment-7079649795) Main's history was rewritten, which auto-closed this PR (sorry for the noise). Closing: the existing `sym` operands build and pass here on cargo 1.100. Please reopen with a toolchain version that fails.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.