Skip to content
/ ainur Public

🌌 Detect compiler names and versions from ELF files

License

Notifications You must be signed in to change notification settings

xyproto/ainur

Repository files navigation

Ainur

GoDoc License Go Report Card

Go package for figuring out which compiler and compiler version was used for compiling an executable file for Linux (in the ELF format).

Utilities that uses Ainur

Features and limitations

  • Supports detection of compiler name and version if an executable was built with one of these compilers:
    • GCC
    • Clang
    • FPC
    • OCaml
    • Go
    • TCC (compiler name only, TCC does not store the version number in the executables)
    • Rust (for stripped executables, only the compiler name and GCC version used for linking)
    • GHC
  • Works even with stripped executables.
  • Should work for recent versions of all of the above compilers. Executables produced with old versions of the compilers may need more testing.

General info