]> granicus.if.org Git - llvm/commit
[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)
commit2f1ee6f74ca80006266d80fac2c4d3112ab91a99
tree29eb6a7e05dddedf82106d58d3f8c1d3a0198bbe
parent1f945277dfdd2dc694e947f955da0d2408176954
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369231 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/MachO/basic-executable-copy.test [new file with mode: 0644]
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp