sys-devel/
elftoolchain

Libraries/utilities to handle ELF objects (BSD drop in replacement for libelf)

https://wiki.freebsd.org/LibElf