Home /Modules/decompiler/STAGE3_ELF_ARCHIVES.md

STAGE3_ELF_ARCHIVES.md

decompiler/docs/STAGE3_ELF_ARCHIVES.md · 59 line(s) · markdown

Slecompiler™ Stage 3 — Native ELF and Archive Intelligence

Stage 3 extends the static-analysis foundation without executing native artifacts.

Implemented

Analysis model

Slecompiler treats ELF program headers as the loader-facing view and sections as the linker/debugging view. Relocations and dynamic metadata are retained as evidence rather than applied to process memory.

For kernel modules, the parser continues to read .modinfo and recognizes ksymtab-related sections without inserting or loading a .ko.

Remaining work

Safety boundary

The Stage 3 parser is bounded and read-only. It does not load ELF objects, execute instructions, insert kernel modules, open devices, or modify target memory.

Stage 4 started

Stage 4 begins native recovery with architecture-aware x86/x86-64 control-transfer decoding and branch-aware CFG construction. The decoder currently recognizes common relative calls, unconditional jumps, conditional jumps, and returns. Unknown instructions remain represented conservatively rather than guessed.

The analyzer now forms basic blocks at branch targets and control-transfer fallthrough points, then emits CFG edges for conditional and unconditional branches. This is the beginning of function-boundary recovery; it is not yet a complete x86 decoder or production-grade decompiler.

Stage 4 implementation note

The Stage 4 native-recovery layer has been expanded with:

The implementation intentionally remains conservative. Unsupported x86 instructions are emitted as db records rather than guessed, and ARM/ARM64 continue to use the non-decoding fallback until dedicated architecture decoders are added.