libelf lets you read, modify or create ELF files in an architecture-independent way. The library takes care of size and endian issues. For example, you can process a file for SPARC processors on an Intel-based system. This library is a clean-room rewrite of the System V Release 4 library, and is supposed to be source code compatible with it. It was meant primarily for porting SVR4 applications to other operating systems, but can also be used as the basis for new applications (and as a light-weight alternative to libbfd).
| Tags | Software Development Libraries |
|---|---|
| Licenses | LGPL |
Recent releases


Changes: This release fixes a bug in elf_rawfile().


Changes: Users are now able to turn off select sanity checks that are not compatible with other versions of libelf.


Changes: The data translator can now handle versioning sections with inconsistent data (as found on Solaris). Windows DLLs should work now as well.


Changes: This release fixes a brown paper bag bug that made 0.8.7 unusable. Besides that, elf_getphnum(), elf_getshnum(), and elf_getshstrndx() are now compatible with OpenSolaris. They are not compatible with Red Hat's elfutils, however, but it was a choice between one or the other.


Changes: New convenience functions: elfx_get_shnum (aka elf_getshnum, for compatibility with elfutils), elfx_get_shstrndx (aka elf_getshstrndx), and elfx_update_shstrndx. Some minor bugfixes.