Skip to content

Utility for displaying which compiler was used for creating an ELF file + basic info

License

Notifications You must be signed in to change notification settings

xyproto/elfinfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ELFinfo

ELFinfo logo

Build Status License Go Report Card

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

This requires Go 1.11 or later and will install the development version:

go get -u github.com/xyproto/elfinfo

Example usage

$ elfinfo sh
GCC 8.1.1

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

Distro Packages

Packaging status

General info

About

Utility for displaying which compiler was used for creating an ELF file + basic info

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published