Skip to content
Utility for displaying which compiler was used for creating an ELF file + basic info
HTML Go Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
testfiles
vendor
web
.gitignore
LICENSE
README.md
go.mod
go.sum
main.go
release.sh
test.sh

README.md

ELFinfo

Tiny program for emitting the most basic information about an ELF file.

Can detect the compiler used for compiling a given binary, even if it is stripped. The following languages/compilers are supported:

  • 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 are available)
  • GHC

Installation (development version)

go get -u github.com/xyproto/elfinfo

Example usage

$ elfinfo -c sh
GCC 8.1.1

$ elfinfo /usr/bin/ls
/usr/bin/ls: stripped=true, compiler=GCC 8.2.0, byteorder=LittleEndian, machine=Advanced Micro Devices x86-64

General info

FOSSA Status

You can’t perform that action at this time.