mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
83bc3d5d9f
GNU objcopy documents that -B is only useful with architecture-less input (i.e. "binary" or "ihex"). After D67144, -O defaults to -I, and -B is essentially a NOP. * If -O is binary/ihex, GNU objcopy ignores -B. * If -O is elf*, -B provides the e_machine field in GNU objcopy. So to convert a blob to an ELF, `-I binary -B i386:x86-64 -O elf64-x86-64` has to be specified. `-I binary -B i386:x86-64 -O elf64-x86-64` creates an ELF with its e_machine field set to EM_NONE in GNU objcopy, but a regular x86_64 ELF in elftoolchain elfcopy. Follow the elftoolchain approach (ignoring -B) to simplify code. Users that expect their command line portable should specify -B. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D67215 llvm-svn: 371914 |
||
---|---|---|
.. | ||
COFF | ||
ELF | ||
MachO | ||
Buffer.cpp | ||
Buffer.h | ||
CMakeLists.txt | ||
CommonOpts.td | ||
CopyConfig.cpp | ||
CopyConfig.h | ||
llvm-objcopy.cpp | ||
llvm-objcopy.h | ||
LLVMBuild.txt | ||
ObjcopyOpts.td | ||
StripOpts.td |