[llvm-objcopy][MachO] Implement a layout algorithm for executables
authorSeiya Nuta <nuta@seiya.me>
Mon, 19 Aug 2019 05:41:33 +0000 (05:41 +0000)
committerSeiya Nuta <nuta@seiya.me>
Mon, 19 Aug 2019 05:41:33 +0000 (05:41 +0000)
commitdee9546b8f8386223769e96becc2e24ddcc39de7
tree4068ff554ba9924ee20dfffa1d5ba24930a5866b
parent4a198a7f990812f6a64ecb2d20d3503c66b5dea2
[llvm-objcopy][MachO] Implement a layout algorithm for executables

Summary: The layout algorithm for relocatable objects and for executable are somewhat different. This patch implements the latter one based on the algorithm in LLD (MachOFileLayout).

Reviewers: alexshap, rupprecht, jhenderson

Reviewed By: alexshap

Subscribers: jakehehrlich, abrachet, llvm-commits

Tags: #llvm

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

llvm-svn: 369231
llvm/test/tools/llvm-objcopy/MachO/basic-executable-copy.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp