Repository navigation
[AUTOMATED] Seed library prototypes for untyped ELF code imports - #1069
Merged
Merged
Conversation
Reuse proven ELF code imports and exact synthetic addresses in existing library prototype passes while preserving linked-image matching and ambiguity guards. Cover generated SPARC32/x86-64 imports, data-address negatives, and known/undeclared floating and status-return contracts.
…idence The libproto, libcsigs and libctypes passes now also type a relocatable object's proven external code targets. Turning the three off restores the previous output on such objects; the chapter says so, and records the neighbouring-call cascades the new typing can expose. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015sdZpNU5odw5dVyaxeSvvz
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015sdZpNU5odw5dVyaxeSvvz
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_015sdZpNU5odw5dVyaxeSvvz
Contributor
|
[AUTOMATED] Before merging we added one commit on top (ae476d3) that only edits the spec text in The new relocatable-object evidence has no option of its own. The existing The chapter now also notes a known side effect. Once one callee is typed, the argument inference of an untyped call next to it can shift:
These issues already exist in the argument inference and the loader, and we are tracking them separately. |
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.
Known library calls in ELF relocatable objects lose their standard prototypes when imports have the usual
STT_NOTYPEmetadata. This wrapper consequently loses its pointer parameter and return type:Current output:
Fixed output:
Generated ELF tests cover SPARC32/x86-64 pointer parameters and returns, real x86 addend −4, text-section data-address relocations and versioned name collisions. ELF loader behavior needs an object-based console test; XML stages do not reach this path.
Compiler-built controls: 12 corrected calls across six ABI variants; all 32 data-address controls unchanged. Matched development builds: median CPU +0.93% over five alternating runs (12 functions per run).
Debian linked-ELF controls: 10,133 matching successful functions from 48 executables on 12 architectures; 20 matching errors excluded, no stable output changes.