I’ve just published v0.1.0 of mer, a small crate for parsing ELF64 images. It is especially designed for use within bootloaders and kernels, and I’m planning to use it within the Pebble bootloader for loading the kernel image.
I decided to write (yet another) ELF library because I couldn’t find a good way to extract the value of a symbol with a specific name using either xmas_elf or goblin, which are the libraries I’ve had experience with. The ELF format can be a bit of a pain, especially the strings, but I felt it was time for a library to make it easy.
It doesn’t yet support program headers or relocations, but it’s a good start for my purposes.