[all-commits] [llvm/llvm-project] bfeb28: Use LC_DYLD_EXPORTS_TRIE to locate the dyld trie s...

jimingham via All-commits all-commits at lists.llvm.org
Fri Aug 6 16:38:52 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bfeb281fbd8e348edfadf5052e9266e13b832171
      https://github.com/llvm/llvm-project/commit/bfeb281fbd8e348edfadf5052e9266e13b832171
  Author: Jim Ingham <jingham at apple.com>
  Date:   2021-08-06 (Fri, 06 Aug 2021)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp

  Log Message:
  -----------
  Use LC_DYLD_EXPORTS_TRIE to locate the dyld trie structure if present

The pointer to the dyld trie data structure which lldb needs to parse to get
"trampoline kinds" on Darwin used to be a field in the LC_DYLD_INFO load command. A
new load command was added recently dedicated to this purpose: LC_DYLD_EXPORTS_TRIE.
The format of the trie did not change, however. So all we have to do is use the new
command if present. The commands are supposed to be mutually exclusive, so I added
an lldb_assert to warn if they are not.

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




More information about the All-commits mailing list