elfutils

Libraries and utilities for handling ELF objects and DWARF debugging information

brewmacoslinux
Try with needOr install directly
Source

About

Libraries and utilities for handling ELF objects

Commands

eu-addr2lineeu-areu-elfcmpeu-elflinteu-findtextreleu-make-debug-archiveeu-nmeu-objdumpeu-ranlibeu-readelfeu-sizeeu-stackeu-stringseu-stripeu-unstrip

Examples

Display ELF file headers and section information$ eu-readelf -h /bin/ls
Convert binary addresses to source code file and line numbers$ eu-addr2line -e /path/to/binary 0x400000
Strip debug symbols from a binary and save them separately$ eu-strip --strip-debug --keep-file-symbols /path/to/binary -f /path/to/debugfile