[PATCH] D49870: [llvm-objcopy] Add support for --rename-section flags from gnu objcopy
Jordan Rupprecht via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 26 11:54:42 PDT 2018
rupprecht created this revision.
rupprecht added a reviewer: jakehehrlich.
Herald added a reviewer: alexshap.
Herald added a subscriber: llvm-commits.
Add support for --rename-section flags from gnu objcopy.
Not all flags appear to have an effect for ELF objects, but allowing them would allow easier drop-in replacement. Other unrecognized flags are rejected.
This was only tested by comparing flags printed by "readelf -e <.o>" against the output of gnu vs llvm objcopy, it hasn't been tested to be valid beyond that.
Repository:
rL LLVM
https://reviews.llvm.org/D49870
Files:
test/tools/llvm-objcopy/rename-section-flag.test
tools/llvm-objcopy/ObjcopyOpts.td
tools/llvm-objcopy/llvm-objcopy.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49870.157546.patch
Type: text/x-patch
Size: 9411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180726/320a4ec8/attachment.bin>
More information about the llvm-commits
mailing list