[llvm-objcopy][MachO] Add support for LC_THREAD/LC_UNIXTHREAD
authorAlexander Shaposhnikov <alexshap@fb.com>
Tue, 27 Apr 2021 22:54:28 +0000 (15:54 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Tue, 27 Apr 2021 22:54:51 +0000 (15:54 -0700)
commit4dfddf715b94857998601aa79c25e4f327d44dfa
treeffced2a3e2e8ae25a1ed8f3a1ebcc58544393906
parentb19136e35256c5b21aff93ea5b55b4c142408c40
[llvm-objcopy][MachO] Add support for LC_THREAD/LC_UNIXTHREAD

Add support for LC_THREAD/LC_UNIXTHREAD
(these load commands can be copied over without any modifications).

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D101384
llvm/test/tools/llvm-objcopy/MachO/lc-thread.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp