Repository navigation
Conversation
Rebase the graphics proposal onto upstream b42ef24 without carrying the historical macOS merge chain. Includes the compiler/runtime prerequisite from PR boykopovar#1835 and the still-required macOS foundation from mugurc/macos-port at 21930ce; those platform changes remain until their upstream PRs land. Preserve upstream starting-quad folding and the qualified vertex lane rule. Keep x87-dependent Math.cpp outside the optional ARM64 graphics closure rather than weakening its ABI assertion.
This was referenced Oct 15, 2026
Merged
11 tasks done
11 tasks done
Contributor
Author
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.
What
Recover unwind ranges, dynamic symbols and load facts from program headers only, so a linked x86-64 ELF without a section table recovers the same function candidates and imports as the same image with sections.
unwind_index.pyreadsPT_GNU_EH_FRAMEand the eh_frame stream throughPT_LOADmappings. Each indexed FDE must match its search-table key and lie in one executable file-backed segment. Unsorted or duplicate tables, extended records, foreign return columns, unsupported encodings and out-of-image pointers reject. A missing index, unindexed FDEs, overlapping ranges, an unterminated stream and personality slots without a relocation become explicit obligations instead of guessed ranges.load_facts.pywrites a dossier of entry, lifecycle, export and address-taken roots, direct calls, PLT/GOT import bindings with provenance, preconditions, dependencies and invalidation conditions. Indirect transfers, tail calls, interior calls and unclassified executable bytes stay obligations. An FDE is unwind evidence, not a function boundary or ABI.recover_imageconsumes the qualified ranges and the dynamic symbols; unwind obligations enterunknowns, so contract materialization still rejects them.dynamic.pycounts symbols fromDT_GNU_HASH(bounded chain walk, agreement withDT_HASHwhen both exist).Tested
Latest integration checkpoint (12 October): aligned with main
2f4cc8983, including the new component technical-debt layout. The final combined stack with the separate C++ follow-up #4718 passed 588 compiler/relinker/runtime checks and 26 native integrations on Apple Silicon. Rebuilt cube AOT/reference still match all eight RGB frames after 600 flips each; controller and typed module-bundle acceptance pass. These are local results; hosted CI is running on the updated head. Full Linux/Windows builds still require maintainer dispatch.Apple Silicon/macOS, merged with current main and with the native AOT examples enabled: 559 compiler/relinker/runtime checks passed, including 30 new load-fact cases and two GNU-hash cases (positive and negative fixtures for every rejection and obligation above, deterministic regeneration, binding changes). The integration test checks that a section table does not change recovery and that the recovered ranges reach contract materialization.
Locally, outside the repository: zstd 1.5.7 and yaml-cpp 0.9.0 linked as glibc x86-64 PIE with Zig 0.14.1, in four variants each (full, stripped, without section table, without the unwind index header). Without a section table the previous recovery rejected with
missing dynamic symbol; now stripped and section-less variants give identical results (961 and 2110 ranges, 68 and 97 imports); without the index the recovery reportsunwind-index-missing. Ranges match the relinker's EhFrameReader on both inputs; on eight corrupted variants this reader rejects or reports cases the relinker reader accepts silently (unsorted/duplicate table, out-of-executable range, unterminated stream). yaml-cpp exposed indirect personality slots, and the first hosted macOS run exposed the four-bytePT_GNU_EH_FRAMEplaceholder that ps5link writes at address 0; an index whose file offset is not the loaded offset of its address now reportsunwind-index-not-loadedinstead of being parsed. Both have regressions. Hosted CI pending; full Linux/Windows builds need maintainer dispatch. No conversion of these programs is claimed here.Checklist