[llvm-dev] How to objcopy via LLVM toolchain for armv7e-m ELF32LE?

Leslie Zhai via llvm-dev llvm-dev at lists.llvm.org
Sun Nov 12 19:32:58 PST 2017


Hi LLVM developers,

As PR35281 mentioned:

$ llvm-objcopy -O binary llvm-cortex-m7.elf llvm-cortex-m7.bin
llvm-objcopy: 'llvm-cortex-m7.elf': The file was not recognized as a 
valid object file.


if (ELFObjectFile<ELF64LE> *o = 
dyn_cast<ELFObjectFile<ELF64LE>>(&Binary)) 
https://github.com/llvm-mirror/llvm/blob/master/tools/llvm-objcopy/llvm-objcopy.cpp#L200


Please give me some hints about objcopy armv7e-m ELF32LE via LLVM 
toolchain, thanks a lot!

-- 
Regards,
Leslie Zhai - https://reviews.llvm.org/p/xiangzhai/





More information about the llvm-dev mailing list