Split the elf2hex code from modiified llvm-objdump.cpp to elf2hex.cpp