[PATCH] D41687: [llvm-objcopy] Add support for input types and the -I and -B flags

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 03:41:54 PST 2018


jhenderson added a comment.

I just did some experimenting with GNU objcopy with this, and I'm getting a binary copy of the input, when using -I binary, even with -B i386:x86-64. I can workaround this using -O elf64-x86-64, i.e. "objcopy text.txt text.o -B i386:x86-64 -I binary -O elf64-x86-64". If I drop the -B, I get an EM_NONE machine type, and if I drop the -O, I get a text file. Not sure how you want to handle this!


Repository:
  rL LLVM

https://reviews.llvm.org/D41687





More information about the llvm-commits mailing list