Repository navigation
[AUTOMATED] Decode indexed IEEE-695 and TIOF modules - #1944
Merged
Merged
Conversation
Contributor
|
[AUTOMATED] Pushed 2960b49 with two fixes, checked against binutils' IEEE-695 reader and writer (
The overlap test now places W2 inside W5, because W2 == W5 is a legal empty W2. A new test covers the empty trailer and both long-name forms. On four binutils-written modules (relocatable, absolute, and 150- and 250-byte module names), one opened before this change and all four open now. |
Validate W-part bounds and module termination. Expose compact fields and relocation-expression tokens without applying a target layout.
…nd 0xDE/0xDF name lengths binutils' IEEE-695 writer records the trailer-part offset even when the trailer is empty, so a relocatable module with no start address has W6 == W7, which module() rejected as an invalid W6 part offset. A W0..W6 part may now share the next part's offset as an empty cursor; W7 must still hold the ME record. Cursor::name() also reads the 0xDE (one length byte) and 0xDF (two length bytes) forms IEEE-695 uses for names of 128 bytes or more, such as a long module name. The numeric length form is still read. The overlap test now uses a real overlap (W2 inside W5), since W2 == W5 is a legal empty W2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013BBaWTdjVzTz11WxPZmJ9b
thotypous
force-pushed
the
kuna-ieee695-records
branch
from
November 24, 2026 20:38
2960b49 to
8d56fb6
Compare
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.
Kuna can now read the indexed envelope and relocation tokens of a binary IEEE-695 or TIOF module. The reader test opens an indexed
m68000module and reads its W5 expression without crossing into the W7 trailer:Dependency for the Carmel PR (#1936): the target profile uses this shared IEEE-695 and TIOF reader.
Model:
openai-codex/gpt-6.2-sol