[all-commits] [llvm/llvm-project] a6f3fe: [objcopy] Refactor CommonConfig to add posibility ...

avl-llvm via All-commits all-commits at lists.llvm.org
Tue Mar 1 03:50:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6f3fedc3f12a444924b4d30a4dcad1b6eaad965
      https://github.com/llvm/llvm-project/commit/a6f3fedc3f12a444924b4d30a4dcad1b6eaad965
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2022-03-01 (Tue, 01 Mar 2022)

  Changed paths:
    M llvm/include/llvm/ObjCopy/CommonConfig.h
    M llvm/lib/ObjCopy/COFF/COFFObjcopy.cpp
    M llvm/lib/ObjCopy/ELF/ELFObjcopy.cpp
    M llvm/lib/ObjCopy/MachO/MachOObjcopy.cpp
    M llvm/lib/ObjCopy/wasm/WasmObjcopy.cpp
    M llvm/test/tools/llvm-objcopy/COFF/add-section.test
    M llvm/test/tools/llvm-objcopy/ELF/add-section.test
    M llvm/test/tools/llvm-objcopy/MachO/add-section-error.test
    M llvm/test/tools/llvm-objcopy/MachO/update-section.test
    M llvm/tools/llvm-objcopy/ObjcopyOptions.cpp
    M llvm/unittests/ObjCopy/ObjCopyTest.cpp

  Log Message:
  -----------
  [objcopy] Refactor CommonConfig to add posibility to specify added/updated sections as MemoryBuffer.

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.

Differential Revision: https://reviews.llvm.org/D120486




More information about the All-commits mailing list