← Lab /Software

Adding compilation metadata lets binaries be lifted and recompiled safely with no performance loss

Embedding compiler-generated metadata in binaries makes disassembly decidable and enables correct lifting, instrumentation, and recompilation

Software arXiv 21 Apr 2026 Method Prototype evidence

Published as “Adding Compilation Metadata To Binaries To Make Disassembly Decidable”

Why it matters

ELLF enables reliable analysis, patching, and fuzzing of stripped binaries with only modest compile-time and size costs, facilitating security work on closed-source software.

Summary

Adding compile-time metadata (ELLF) makes binary disassembly and reassembly decidable, enabling correct reconstruction of stripped binaries; the approach passes all 198 LLVM test suite programs and most recompiled binaries, with a 57% compile-time overhead, 27% binary size increase, and essentially unchanged runtime performance.

What they found 5

  1. All original and metadata-augmented programs pass the LLVM test suite, showing functional correctness.

    “All 198 original programs pass all test cases. Similarly, all programs compiled with our toolchain also pass all test cases, demonstrating that the addition of metadata does not alter functional behavior.”

  2. Metadata generation adds a 57% average compile-time overhead.

    “Compiling with our toolchain introduces an average overhead of 57% relative to baseline compilation.”

  3. Binary size grows by 27% when ELLF metadata is added.

    “Adding ELLF metadata increases binary size by 27%.”

  4. Runtime performance is essentially unchanged (±10% variation, small average speedup of 1.6%).

    “Execution times of metadata-augmented binaries are essentially identical to the original binaries.”

  5. One recompiled program (frame_layout) fails due to a rare linker interaction.

    “The only exception in the disassembly-and-recompile stage is the program frame_layout, which fails a single test case.”

Caveats 3

  • The disassembler fails on the program frame_layout because of merged sections causing pointer overlap.
  • Rare binary patterns such as merged sections and unusual switch table layouts are not fully supported.
  • Our toolchain does not yet fully support some rare binary patterns. In particular, the disassembler cannot handle merged sections of different types, and certain unusual switch table layouts are not fully captured by our metadata generation.

What’s new here 4

  • Provides compile-time generated metadata that makes disassembly, symbolization, and CFG construction decidable.
  • Enables fully symbolized assembly (text, data, stack) without requiring source code or DWARF.
  • Demonstrates reliable reassembly of stripped binaries with modest overhead compared to DWARF.
  • Introduces a set of oracles (Instruction, Pointer, Text, Stack, Data) embedded in the ELF as a new format (ELLF).