[all-commits] [llvm/llvm-project] 94e0f8: [lld-macho] Accept dylibs with LC_DYLD_EXPORTS_TRIE

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Wed Jul 13 13:35:00 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94e0f8e001002b828c42048f383806295e7abbb2
      https://github.com/llvm/llvm-project/commit/94e0f8e001002b828c42048f383806295e7abbb2
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M lld/MachO/InputFiles.cpp
    M lld/MachO/InputFiles.h
    A lld/test/MachO/lc-dyld-exports-trie.yaml

  Log Message:
  -----------
  [lld-macho] Accept dylibs with LC_DYLD_EXPORTS_TRIE

This load command specifies the offset and size of the exports trie.
This information used to be a field in LC_DYLD_INFO, but in newer
libraries, it has a dedicated load command: LC_DYLD_EXPORTS_TRIE.

The format of the trie is the same for both load commands, so the code
for parsing it can be shared.

LLD does not generate this yet; it is mainly useful when chained fixups
are in use, as the other members of LC_DYLD_INFO are unused then, so the
smaller LC_DYLD_EXPORTS_TRIE can be output instead.

LLDB gained support for this in D107673.

Fixes #54550

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




More information about the All-commits mailing list