Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xyproto/elfinfo
Utility for displaying which compiler was used for creating an ELF file + basic info
https://github.com/xyproto/elfinfo
elf utility
Last synced: 20 days ago
JSON representation
Utility for displaying which compiler was used for creating an ELF file + basic info
- Host: GitHub
- URL: https://github.com/xyproto/elfinfo
- Owner: xyproto
- License: bsd-3-clause
- Created: 2017-05-29T13:08:40.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-03-10T23:15:07.000Z (over 1 year ago)
- Last Synced: 2024-10-05T15:25:54.166Z (about 1 month ago)
- Topics: elf, utility
- Language: HTML
- Homepage: https://elfinfo.roboticoverlords.org/
- Size: 151 KB
- Stars: 23
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ELFinfo
[![License](http://img.shields.io/badge/license-BSD-green.svg?style=flat)](https://raw.githubusercontent.com/xyproto/elfinfo/main/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/xyproto/elfinfo)](https://goreportcard.com/report/github.com/xyproto/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
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](https://repology.org/badge/vertical-allrepos/elfinfo.svg)](https://repology.org/project/elfinfo/versions)
## General info
* Version: 1.2.2
* Author: Alexander F. Rødseth <[email protected]>
* License: BSD-3