Ed Maste - 2015-08-06

Yes. It's also unfortunate that this functionality exists in both elfdump and readelf.

One possible fix would be to move elf_osabi(), elf_machine() etc. from readelf into libelftc and share it with elfdump.

Alternatively, it may make sense to just roll elfdump into readelf and switch behaviour based on argv[0].