[all-commits] [llvm/llvm-project] 282bf2: [llvm-nm][MachO] Add support for `MH_FILESET`

Antonio Frighetto via All-commits all-commits at lists.llvm.org
Tue Sep 5 09:51:56 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 282bf213ee2f0fc0c259efa4e9f6283a1f1a2ae1
      https://github.com/llvm/llvm-project/commit/282bf213ee2f0fc0c259efa4e9f6283a1f1a2ae1
  Author: Antonio Frighetto <me at antoniofrighetto.com>
  Date:   2023-09-05 (Tue, 05 Sep 2023)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/MachO.h
    M llvm/include/llvm/Object/MachO.h
    M llvm/include/llvm/Object/ObjectFile.h
    M llvm/lib/Object/MachOObjectFile.cpp
    M llvm/lib/ObjectYAML/MachOYAML.cpp
    A llvm/test/tools/llvm-nm/AArch64/Inputs/fileset.macho-aarch64
    A llvm/test/tools/llvm-nm/AArch64/macho-fileset.test
    M llvm/tools/llvm-nm/llvm-nm.cpp

  Log Message:
  -----------
  [llvm-nm][MachO] Add support for `MH_FILESET`

Support printing of symbols for MachO of `MH_FILESET` type.
This is achieved by extending `dumpSymbolNamesFromObject`
to encompass fileset handling, and including an offset in
`MachOObjectFile` class to locate embedded MachO headers.

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




More information about the All-commits mailing list