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

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 2 17:09:21 PST 2018


jakehehrlich created this revision.
jakehehrlich added a reviewer: jhenderson.

This change adds support for the -I and -B flags from GNU objcopy. The only currently supported input type is "binary" and only 4 architectures (by a total of 5 names) are currently supported.  This change adds a constructor for Object and its subtypes that includes the basic sections and contents that almost any relocatable ELF will have. This needs to know the ELFT and EMachine code so some architecture information stuff was needed (oddly I wasn't able to figure out any good way to piggy back off of llvm) After that another method adds the parts that are specific to the binary input type.


Repository:
  rL LLVM

https://reviews.llvm.org/D41687

Files:
  test/tools/llvm-objcopy/binary-input.test
  tools/llvm-objcopy/Object.cpp
  tools/llvm-objcopy/Object.h
  tools/llvm-objcopy/llvm-objcopy.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41687.128479.patch
Type: text/x-patch
Size: 19478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180103/ecffca60/attachment.bin>


More information about the llvm-commits mailing list