[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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 19478 bytes
Desc: not available
More information about the llvm-commits