[all-commits] [llvm/llvm-project] e854c1: [llvm] Teach LLVM about filesets

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Wed Aug 24 09:34:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e854c17b02f8cd82a303d223ba5f3b0d87579cd7
      https://github.com/llvm/llvm-project/commit/e854c17b02f8cd82a303d223ba5f3b0d87579cd7
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2022-08-24 (Wed, 24 Aug 2022)

  Changed paths:
    M llvm/include/llvm/BinaryFormat/MachO.def
    M llvm/include/llvm/BinaryFormat/MachO.h
    M llvm/lib/ObjectYAML/MachOYAML.cpp

  Log Message:
  -----------
  [llvm] Teach LLVM about filesets

Teach LLVM about filesets. Filesets were added in macOS 11 (Big Sur) to
combine multiple Mach-O files. They introduce a new load command
(LC_FILESET_ENTRY) consisting of a fileset_entry_command.

  struct fileset_entry_command {
      uint32_t     cmd;        /* LC_FILESET_ENTRY */
      uint32_t     cmdsize;    /* includes entry_id string */
      uint64_t     vmaddr;     /* memory address of the entry */
      uint64_t     fileoff;    /* file offset of the entry */
      union lc_str entry_id;   /* contained entry id */
      uint32_t     reserved;   /* reserved */
  };

This patch teaches LLVM about the new load command and the corresponding
data.

Differential revision: https://reviews.llvm.org/D132432




More information about the All-commits mailing list