[all-commits] [llvm/llvm-project] 22c163: [lldb/ObjectFileMachO] Correctly account for resol...

fredriss via All-commits all-commits at lists.llvm.org
Fri Jul 24 09:20:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 22c16360dd00230987fee5f6f3c57f8071144cc1
      https://github.com/llvm/llvm-project/commit/22c16360dd00230987fee5f6f3c57f8071144cc1
  Author: Fred Riss <friss at apple.com>
  Date:   2020-07-24 (Fri, 24 Jul 2020)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    M lldb/test/API/macosx/indirect_symbol/Makefile

  Log Message:
  -----------
  [lldb/ObjectFileMachO] Correctly account for resolver symbols

Summary:
The resolver addresses stored in the dyld trie are relative to the base
of the __TEXT segment. This is usually 0 in a dylib, so this was never
noticed, but it is not 0 for most dylibs integrated in the shared cache.
As we started using the shared cache images recently as symbol source,
this causes LLDB to fail to resolve symbols which go through a runtime
resolver.

Reviewers: jasonmolenda, jingham

Subscribers: lldb-commits

Tags: #lldb

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




More information about the All-commits mailing list