[all-commits] [llvm/llvm-project] 940e17: [llvm-objdump] Start on -chained_fixups for llvm-o...

Nico Weber via All-commits all-commits at lists.llvm.org
Mon Aug 15 07:59:08 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 940e178c0018b32af2f1478d331fc41a92a7dac7
      https://github.com/llvm/llvm-project/commit/940e178c0018b32af2f1478d331fc41a92a7dac7
  Author: Nico Weber <thakis at chromium.org>
  Date:   2022-08-15 (Mon, 15 Aug 2022)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objdump.rst
    M llvm/docs/CommandGuide/llvm-otool.rst
    M llvm/include/llvm/BinaryFormat/MachO.h
    M llvm/test/tools/llvm-objdump/MachO/chained-fixups.yaml
    M llvm/tools/llvm-objdump/MachODump.cpp
    M llvm/tools/llvm-objdump/MachODump.h
    M llvm/tools/llvm-objdump/ObjdumpOpts.td
    M llvm/tools/llvm-objdump/OtoolOpts.td
    M llvm/tools/llvm-objdump/llvm-objdump.cpp

  Log Message:
  -----------
  [llvm-objdump] Start on -chained_fixups for llvm-otool

And --chained-fixups for llvm-objdump.

For now, this only prints the dyld_chained_fixups_header and adds
plumbing for the flag. This will be expanded in future commits.

When Apple's effort to upstream their chained fixups code continues,
we'll replace this code with the then-upstreamed code. But we need
something in the meantime for testing ld64.lld's chained fixups
code.

Update chained-fixups.yaml with a file that actually contains
the chained fixup data (`LinkEditData` doesn't encode it yet,
so use `__LINKEDIT` via `--raw-segment=data`).

Differential Revision: https://reviews.llvm.org/D131890




More information about the All-commits mailing list