I am looking for a C or C++ library for parsing and loading (i.e. performing relocations) on ELF files. This is for an embedded project and ideally I'd like it to support multiple CPU platforms, i.e. Arm, MIPS, PPC, x86, etc. I've found plenty of references for parsing ELF files, but so far cannot find anything I can use to do relocations. So far I've looked at these libraries and found them lacking:
- BFD in Binutils -- Confusing API and lack of documentation
- radare2 -- contains an ELF library, but I don't see any code to do relocations
- ELFIO -- Only supports x86
Can anyone suggest a library containing code I could use?