Update elf2hex to use more LLVM library functions.