[all-commits] [llvm/llvm-project] 621e2d: Add a (nonfunctional) -dyld_info flag to llvm-objd...

adrian-prantl via All-commits all-commits at lists.llvm.org
Tue Feb 22 11:06:49 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 621e2de138f70e175512c18d9f358666de93e838
      https://github.com/llvm/llvm-project/commit/621e2de138f70e175512c18d9f358666de93e838
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2022-02-22 (Tue, 22 Feb 2022)

  Changed paths:
    M llvm/docs/CommandGuide/llvm-objdump.rst
    A llvm/test/tools/llvm-objdump/MachO/dyld_info.test
    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:
  -----------
  Add a (nonfunctional) -dyld_info flag to llvm-objdump.

Darwin otool implements this flag as a one-stop solution for
displaying bind and rebase info. As I am working on upstreaming
chained fixup support this command will be useful to write testcases.

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


  Commit: a3bfb01d94cc486280f2f13f5e86f4070bf3b450
      https://github.com/llvm/llvm-project/commit/a3bfb01d94cc486280f2f13f5e86f4070bf3b450
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2022-02-22 (Tue, 22 Feb 2022)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/MachO.h
    M llvm/include/llvm/Object/MachO.h
    M llvm/lib/Object/MachOObjectFile.cpp
    A llvm/test/Object/AArch64/chained-fixups-header.test
    A llvm/test/Object/Inputs/MachO/chained-fixups.yaml
    M llvm/test/tools/llvm-objdump/MachO/dyld_info.test
    M llvm/tools/llvm-objdump/MachODump.cpp

  Log Message:
  -----------
  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


Compare: https://github.com/llvm/llvm-project/compare/de2cc2a00298...a3bfb01d94cc


More information about the All-commits mailing list