diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-18 08:59:49 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-18 08:59:49 +0000 |
| commit | eaabdf5796594be87084758fa524622db1c1dbaa (patch) | |
| tree | 38d0d602accafe5e7145066eb146c993dd162fdb /AGENTS | |
| parent | c5f103663bbee226d20bf6405457a62e7ec41611 (diff) | |
fix(driver): bind MinGW JIT runtime dependencies to host symbols
Resolve the known weak __cxa_pure_virtual reference through the host ABI
instead of JITLink's unsupported absolute-zero fallback. Share the host's
initialized stack guard and failure handler, and map write to _write.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS')
| -rw-r--r-- | AGENTS/ARCH.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/AGENTS/ARCH.md b/AGENTS/ARCH.md index 2408179..b14210a 100644 --- a/AGENTS/ARCH.md +++ b/AGENTS/ARCH.md @@ -142,7 +142,11 @@ Driver behavior (`tools/driver/main.cc`): small in-process COFF adapter: `MinGWCOFF.h` normalizes symbol-less MinGW `.pdata$NAME`/`.xdata$NAME` COMDATs to associative COMDATs of `.text$NAME` in private object-buffer copies before graph construction, including lazy - runtime archive members. Per-graph `__ImageBase` is shared by relocations + runtime archive members. It also makes MinGW's weak `__cxa_pure_virtual` + reference with an absolute-zero fallback an ordinary external, resolved to + the host ABI function. The runner binds the host's initialized stack guard, + stack-check failure handler and `write` alias (`_write`) on MinGW. + Per-graph `__ImageBase` is shared by relocations and SEH registration, with default backend liveness for `.pdata` and associative code edges retaining the suffixed unwind sections. JITLink uses pointer-jump stubs for external direct CALL/JMP PCRel32 references in user |
