[PATCH] D120486: [objcopy] Refactor CommonConfig to add posibility to specify added/updated sections as MemoryBuffer.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 24 07:22:03 PST 2022
avl created this revision.
avl added reviewers: jhenderson, alexander-shaposhnikov, MaskRay, mstorsjo.
Herald added subscribers: abrachet, hiraditya, sbc100, emaste.
Herald added a reviewer: rupprecht.
avl requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.
Current objcopy implementation has a possibility to add or update sections.
The incoming section is specified as a pair: section name and name of the file
containing section data. The interface does not allow to specify incoming
section as a memory buffer. This patch adds possibility to specify incoming
section as a memory buffer.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120486
Files:
llvm/include/llvm/ObjCopy/CommonConfig.h
llvm/lib/ObjCopy/COFF/COFFObjcopy.cpp
llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
llvm/lib/ObjCopy/MachO/MachOObjcopy.cpp
llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
llvm/test/tools/llvm-objcopy/COFF/add-section.test
llvm/test/tools/llvm-objcopy/ELF/add-section.test
llvm/test/tools/llvm-objcopy/MachO/add-section-error.test
llvm/test/tools/llvm-objcopy/MachO/update-section.test
llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
llvm/unittests/ObjCopy/ObjCopyTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120486.411122.patch
Type: text/x-patch
Size: 22015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220224/f6014df6/attachment.bin>
More information about the llvm-commits
mailing list