Skip to content

[AUTOMATED] Decode Intel HEX records independently of target architecture - #1945

Merged
mahaloz merged 1 commit into
Noelo-Lab:mainfrom
thotypous:kuna-ihex-records
Nov 24, 2026
Merged

mahaloz merged 1 commit into
Noelo-Lab:mainfrom
thotypous:kuna-ihex-records

Conversation

@thotypous

@thotypous thotypous commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Kuna has no Intel HEX reader. This file places the two bytes c3 90 at address zero:

printf ':02000000C390AB\n:00000001FF\n' >/tmp/example.ihex
objcopy -I ihex -O binary /tmp/example.ihex /tmp/example.bin
od -An -tx1 /tmp/example.bin
# c3 90
  • Decode sparse data and start records without inferring the ISA or multiplying addresses by the payload length. Verify checksums, lengths, base changes, and EOF.
  • Run cd decompiler && cargo test -p kuna-analysis loader::ihex::tests for segment and linear addresses, boundary-crossing records, and corrupt streams.

Dependency for the Carmel PR (#1936): the target profile uses this shared Intel HEX reader.

Model: openai-codex/gpt-6.2-sol

Validate lengths, checksums, address extensions, and EOF. Keep
addresses unscaled and preserve segment and linear start records.
@mahaloz
mahaloz merged commit 96770ba into Noelo-Lab:main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants