elfinfo

command module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

README

ELFinfo

ELFinfo logo

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

For Go >=1.17:

go install github.com/xyproto/elfinfo@latest

Example usage

$ elfinfo sh
GCC 10.1.0

$ elfinfo -l /usr/bin/ls
/usr/bin/ls: stripped=true, compiler=GCC 9.2.1, static=false, byteorder=LE, machine=Advanced Micro Devices x86-64

Distro Packages

Packaging status

General info

Documentation

Overview

usr/bin/go run $0 $@; exit

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL