libelf

Library for reading and writing ELF object files

brewmacoslinux
Try with needOr install directly
Source

About

ELF object file access library

Commands

libelf

Examples

Link against libelf in C code to parse ELF headers$ gcc -o parser parser.c -lelf
Use libelf in a program to extract symbol tables from binaries$ cc -I/usr/local/include -L/usr/local/lib program.c -lelf -o program
Verify libelf installation by checking library version$ pkg-config --modversion libelf