Add support for chained fixup load commands to MachOObjectFile
authorAdrian Prantl <aprantl@apple.com>
Thu, 11 Nov 2021 00:25:26 +0000 (16:25 -0800)
committerAdrian Prantl <aprantl@apple.com>
Tue, 22 Feb 2022 19:06:27 +0000 (11:06 -0800)
commita3bfb01d94cc486280f2f13f5e86f4070bf3b450
treed32d25afc2752ab4dcc4e4d2c6d261705bc1ff76
parent621e2de138f70e175512c18d9f358666de93e838
Add support for chained fixup load commands to MachOObjectFile

This is part of a series of patches to upstream support for Mach-O chained fixups.

This patch adds support for parsing the chained fixup load command and
parsing the chained fixups header. It also puts into place the
abstract interface that will be used to iterate over the fixups.

Differential Revision: https://reviews.llvm.org/D113630
llvm/include/llvm/BinaryFormat/MachO.h
llvm/include/llvm/Object/MachO.h
llvm/lib/Object/MachOObjectFile.cpp
llvm/test/Object/AArch64/chained-fixups-header.test [new file with mode: 0644]
llvm/test/Object/Inputs/MachO/chained-fixups.yaml [new file with mode: 0644]
llvm/test/tools/llvm-objdump/MachO/dyld_info.test
llvm/tools/llvm-objdump/MachODump.cpp