[PATCH] D65893: [llvm-objcopy] Allow the visibility of the start, end and size symbols created by --binary to be specified with --binary-symbol-visibility

Chris Jackson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 10:26:17 PDT 2019


chrisjackson created this revision.
chrisjackson added reviewers: gbreynoo, jhenderson.
Herald added subscribers: llvm-commits, abrachet, MaskRay, jakehehrlich, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: alexshap.
Herald added a reviewer: rupprecht.
Herald added a project: LLVM.

llvm-objcopy creates three symbols whenever it is used for binary input generating ELF output, representing the start address, end address and size of the data in the new .data section. These symbols all have STV_DEFAULT visibility. This diff allows the visibility to be specified with --binary-symbol-visibility.


https://reviews.llvm.org/D65893

Files:
  llvm/docs/CommandGuide/llvm-objcopy.rst
  llvm/test/tools/llvm-objcopy/ELF/binary-symbol-visibility.test
  llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp
  llvm/tools/llvm-objcopy/CopyConfig.cpp
  llvm/tools/llvm-objcopy/CopyConfig.h
  llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
  llvm/tools/llvm-objcopy/ELF/Object.cpp
  llvm/tools/llvm-objcopy/ELF/Object.h
  llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
  llvm/tools/llvm-objcopy/ObjcopyOpts.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65893.213943.patch
Type: text/x-patch
Size: 11783 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190807/c4cd2a32/attachment.bin>


More information about the llvm-commits mailing list