Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xyproto/ainur
:milky_way: Detect compiler names and versions from ELF files
https://github.com/xyproto/ainur
detector dlang dmd elf fpc gcc ghc go haskell ocaml rust tcc
Last synced: 10 days ago
JSON representation
:milky_way: Detect compiler names and versions from ELF files
- Host: GitHub
- URL: https://github.com/xyproto/ainur
- Owner: xyproto
- License: bsd-3-clause
- Created: 2018-11-13T10:16:55.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-13T09:34:54.000Z (4 months ago)
- Last Synced: 2025-01-03T06:52:04.861Z (18 days ago)
- Topics: detector, dlang, dmd, elf, fpc, gcc, ghc, go, haskell, ocaml, rust, tcc
- Language: Go
- Homepage:
- Size: 9.76 MB
- Stars: 24
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ainur
[![GoDoc](https://godoc.org/github.com/xyproto/ainur?status.svg)](http://godoc.org/github.com/xyproto/ainur) [![License](http://img.shields.io/badge/license-BSD-green.svg?style=flat)](https://raw.githubusercontent.com/xyproto/ainur/master/LICENSE) [![Go Report Card](https://goreportcard.com/badge/github.com/xyproto/ainur)](https://goreportcard.com/report/github.com/xyproto/ainur)
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
* [cdetect](https://github.com/xyproto/cdetect)
* [elfinfo](https://github.com/xyproto/elfinfo) ([webpage](https://elfinfo.roboticoverlords.org)) (very similar to cdetect)### 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
* Version: 1.3.3
* Author: Alexander F. Rødseth <[email protected]>
* License: BSD-3