[PATCH] D118331: [llvm-objdump][macho] Add initial --chained_fixups support

Kaining Zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 00:56:36 PST 2022


PRESIDENT810 created this revision.
PRESIDENT810 added reviewers: keith, Bigcheese.
Herald added a subscriber: rupprecht.
Herald added a reviewer: jhenderson.
Herald added a reviewer: MaskRay.
PRESIDENT810 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

iOS15 introduces fixup chain to speeds up the dynamic linking process; when building application targeting OS higher than iOS15 / macOS12, Mach-O uses fixup chain in replacement of rebase / binding information, to instruct dyld how to link dynamic libraries. This option aims to behave like the -chained_fixups option of MacOS's otool-classic, which dumps structs related to fixup chain in Mach-O object files, including dyld_chained_fixups_header, dyld_chained_starts_in_image, dyld_chained_starts_in_segment and dyld_chained_import[_addend][64].


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118331

Files:
  llvm/include/llvm/BinaryFormat/MachO.h
  llvm/test/tools/llvm-objdump/MachO/Inputs/macho-fixup-chain
  llvm/test/tools/llvm-objdump/MachO/chained_fixups_dump.test
  llvm/tools/llvm-objdump/MachODump.cpp
  llvm/tools/llvm-objdump/MachODump.h
  llvm/tools/llvm-objdump/ObjdumpOpts.td
  llvm/tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118331.403534.patch
Type: text/x-patch
Size: 20927 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220127/15625069/attachment-0001.bin>


More information about the llvm-commits mailing list