2017-08-01 08:33:58 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
Object
|
2018-04-24 13:43:32 +08:00
|
|
|
Option
|
2017-08-01 08:33:58 +08:00
|
|
|
Support
|
|
|
|
MC
|
|
|
|
)
|
2018-04-24 13:43:32 +08:00
|
|
|
|
2018-05-08 03:32:09 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS ObjcopyOpts.td)
|
|
|
|
tablegen(LLVM ObjcopyOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(ObjcopyOptsTableGen)
|
2018-04-24 13:43:32 +08:00
|
|
|
|
2019-11-20 15:30:52 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS InstallNameToolOpts.td)
|
|
|
|
tablegen(LLVM InstallNameToolOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(InstallNameToolOptsTableGen)
|
|
|
|
|
2020-09-19 09:11:22 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS BitcodeStripOpts.td)
|
|
|
|
tablegen(LLVM BitcodeStripOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(BitcodeStripOptsTableGen)
|
|
|
|
|
2018-05-08 03:32:09 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS StripOpts.td)
|
|
|
|
tablegen(LLVM StripOpts.inc -gen-opt-parser-defs)
|
|
|
|
add_public_tablegen_target(StripOptsTableGen)
|
2018-04-24 13:43:32 +08:00
|
|
|
|
2017-08-01 08:33:58 +08:00
|
|
|
add_llvm_tool(llvm-objcopy
|
2018-10-16 13:40:18 +08:00
|
|
|
Buffer.cpp
|
2018-10-12 06:33:50 +08:00
|
|
|
CopyConfig.cpp
|
2017-08-01 08:33:58 +08:00
|
|
|
llvm-objcopy.cpp
|
2018-12-19 15:24:38 +08:00
|
|
|
COFF/COFFObjcopy.cpp
|
2019-01-11 05:28:24 +08:00
|
|
|
COFF/Object.cpp
|
2018-12-19 15:24:38 +08:00
|
|
|
COFF/Reader.cpp
|
|
|
|
COFF/Writer.cpp
|
[llvm-objcopy] Refactor ELF-specific config out to ELFCopyConfig. NFC.
Summary:
This patch splits the command-line parsing into two phases:
First, parse cross-platform options and leave ELF-specific options unparsed.
Second, in the ELF implementation, parse ELF-specific options and construct ELFCopyConfig.
Reviewers: espindola, alexshap, rupprecht, jhenderson, jakehehrlich, MaskRay
Reviewed By: alexshap, jhenderson, jakehehrlich, MaskRay
Subscribers: mgorny, emaste, arichardson, jakehehrlich, MaskRay, abrachet, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67139
llvm-svn: 372712
2019-09-24 17:38:23 +08:00
|
|
|
ELF/ELFConfig.cpp
|
2018-10-30 05:22:58 +08:00
|
|
|
ELF/ELFObjcopy.cpp
|
|
|
|
ELF/Object.cpp
|
2019-02-02 08:38:07 +08:00
|
|
|
MachO/MachOObjcopy.cpp
|
|
|
|
MachO/MachOReader.cpp
|
|
|
|
MachO/MachOWriter.cpp
|
2019-08-20 05:05:31 +08:00
|
|
|
MachO/MachOLayoutBuilder.cpp
|
2019-06-21 08:21:50 +08:00
|
|
|
MachO/Object.cpp
|
2020-02-12 07:13:40 +08:00
|
|
|
wasm/Object.cpp
|
2020-01-30 09:30:57 +08:00
|
|
|
wasm/Reader.cpp
|
|
|
|
wasm/Writer.cpp
|
|
|
|
wasm/WasmObjcopy.cpp
|
2018-04-24 13:43:32 +08:00
|
|
|
DEPENDS
|
2018-05-08 03:32:09 +08:00
|
|
|
ObjcopyOptsTableGen
|
2019-11-20 15:30:52 +08:00
|
|
|
InstallNameToolOptsTableGen
|
2018-05-08 03:32:09 +08:00
|
|
|
StripOptsTableGen
|
2017-08-01 08:33:58 +08:00
|
|
|
)
|
2017-11-03 05:43:32 +08:00
|
|
|
|
2019-11-20 15:30:52 +08:00
|
|
|
add_llvm_tool_symlink(llvm-install-name-tool llvm-objcopy)
|
2020-09-19 09:11:22 +08:00
|
|
|
add_llvm_tool_symlink(llvm-bitcode-strip llvm-objcopy)
|
2018-05-08 03:32:09 +08:00
|
|
|
add_llvm_tool_symlink(llvm-strip llvm-objcopy)
|
|
|
|
|
2017-11-03 05:43:32 +08:00
|
|
|
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
|
|
|
|
add_llvm_tool_symlink(objcopy llvm-objcopy)
|
2018-05-08 03:32:09 +08:00
|
|
|
add_llvm_tool_symlink(strip llvm-objcopy)
|
2017-11-03 05:43:32 +08:00
|
|
|
endif()
|
2020-08-01 06:22:16 +08:00
|
|
|
|
|
|
|
if(LLVM_INSTALL_CCTOOLS_SYMLINKS)
|
|
|
|
add_llvm_tool_symlink(install_name_tool llvm-install-name-tool)
|
2020-09-19 09:11:22 +08:00
|
|
|
add_llvm_tool_symlink(bitcode_strip llvm-bitcode-strip)
|
2020-08-01 06:22:16 +08:00
|
|
|
endif()
|