[PATCH] D129337: [llvm-objcopy][ELF] Add --set-section-type
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 7 17:28:43 PDT 2022
MaskRay created this revision.
MaskRay added reviewers: jhenderson, jhuber6.
Herald added subscribers: StephenFan, abrachet, hiraditya, emaste.
Herald added a reviewer: alexander-shaposhnikov.
Herald added a reviewer: rupprecht.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The request is mentioned on D129053 <https://reviews.llvm.org/D129053>. I feel that having this functionality is
mildly useful (not strong).
- Rename .ctors to .init_array and change sh_type to SHT_INIT_ARRAY (GNU objcopy detects the special name but we don't).
- Craft tests for a new SHT_LLVM_* extension
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D129337
Files:
llvm/include/llvm/ObjCopy/CommonConfig.h
llvm/lib/ObjCopy/ConfigManager.cpp
llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
llvm/test/tools/llvm-objcopy/ELF/add-section-and-set-attr.test
llvm/test/tools/llvm-objcopy/ELF/add-section-and-set-flags.test
llvm/test/tools/llvm-objcopy/ELF/set-section-attr-and-rename.test
llvm/test/tools/llvm-objcopy/ELF/set-section-type.test
llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
llvm/tools/llvm-objcopy/ObjcopyOpts.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129337.443094.patch
Type: text/x-patch
Size: 13043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220708/a6e2523a/attachment.bin>
More information about the llvm-commits
mailing list