Recommit "[llvm-objcopy][MachO] Implement a layout algorithm for executables"
authorSeiya Nuta <nuta@seiya.me>
Mon, 19 Aug 2019 21:12:02 +0000 (21:12 +0000)
committerSeiya Nuta <nuta@seiya.me>
Mon, 19 Aug 2019 21:12:02 +0000 (21:12 +0000)
commit12bd490427d7d19425ba1a7e5c55c3b22d8aa61d
treeaf42d04d463fb5ffcd0f5f2a7ae4c1c91f94fa1e
parent55ccd16354d90a70e890f4a79b9bfd20186b3c5f
Recommit "[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: 369301
llvm/test/tools/llvm-objcopy/MachO/basic-executable-copy.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp