javierhonduco / ainur

:milky_way: Detect compiler names and versions from ELF files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

:milky_way: Detect compiler names and versions from ELF files

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Go 98.7%Language:Shell 1.3%