[all-commits] [llvm/llvm-project] 42ad9b: [MachO] Support exports trie in both LC_DYLD_INFO ...

Daniel Rodríguez Troitiño via All-commits all-commits at lists.llvm.org
Tue Nov 22 17:47:26 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 42ad9bf95fd5cb30e2ab3e017b6718ac6efea1be
      https://github.com/llvm/llvm-project/commit/42ad9bf95fd5cb30e2ab3e017b6718ac6efea1be
  Author: Daniel Rodríguez Troitiño <danielrodriguez at fb.com>
  Date:   2022-11-22 (Tue, 22 Nov 2022)

  Changed paths:
    M llvm/include/llvm/Object/MachO.h
    M llvm/lib/Object/MachOObjectFile.cpp
    M llvm/lib/ObjectYAML/MachOEmitter.cpp
    R llvm/test/ObjectYAML/MachO/export_trie.yaml
    A llvm/test/ObjectYAML/MachO/export_trie_lc_dyld_exports_trie.yaml
    A llvm/test/ObjectYAML/MachO/export_trie_lc_dyld_info_only.yaml
    M llvm/tools/obj2yaml/macho2yaml.cpp

  Log Message:
  -----------
  [MachO] Support exports trie in both LC_DYLD_INFO and LC_DYLD_EXPORTS_TRIE

The exports trie used to be pointed by the information in LC_DYLD_INFO,
but when chained fixups are present, the exports trie is pointed by
LC_DYLD_EXPORTS_TRIE instead.

Modify the Object library to give access to the information pointed by
each of the load commands, and to fallback from one into the other when
the exports are requested.

Modify ObjectYAML to support dumping the export trie when pointed by
LC_DYLD_EXPORTS_TRIE and to parse the existence of a export trie also
when the load command is present.

This is a split of D134250 with improvements on top.

Reviewed By: alexander-shaposhnikov

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




More information about the All-commits mailing list