Add basic support for --rename-section=old=new to llvm-objcopy.
A full replacement for GNU objcopy requires also modifying flags (i.e. --rename-section=old=new,flag1,flag2); I'd like to keep that in a separate change to keep this simple.
Paths
| Differential D49576
[llvm-objcopy] Add basic support for --rename-section ClosedPublic Authored by rupprecht on Jul 19 2018, 4:48 PM.
Details Summary Add basic support for --rename-section=old=new to llvm-objcopy. A full replacement for GNU objcopy requires also modifying flags (i.e. --rename-section=old=new,flag1,flag2); I'd like to keep that in a separate change to keep this simple.
Diff Detail
Event Timelinealexander-shaposhnikov added inline comments.
This revision now requires changes to proceed.Jul 19 2018, 4:58 PM Comment Actions to me LG, but I'd wait for Jake as well
This revision is now accepted and ready to land.Jul 20 2018, 10:33 AM Comment Actions I want to keep the public interface of Object as small as possible but other than that LGTM
This revision now requires changes to proceed.Jul 20 2018, 11:05 AM Comment Actions Thanks for the suggestion; removing the Object method will probably make the next change (updating flags) simpler. This revision is now accepted and ready to land.Jul 20 2018, 11:25 AM Closed by commit rL337604: [llvm-objcopy] Add basic support for --rename-section (authored by rupprecht). · Explain WhyJul 20 2018, 12:59 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 156400 test/tools/llvm-objcopy/rename-section-multiple.test
test/tools/llvm-objcopy/rename-section.test
tools/llvm-objcopy/ObjcopyOpts.td
tools/llvm-objcopy/Object.h
tools/llvm-objcopy/Object.cpp
tools/llvm-objcopy/llvm-objcopy.cpp
|
We don't need a rename section function because you can already loop over sections and update them.