Support looking up absolute symbols
authorAdrian Prantl <aprantl@apple.com>
Tue, 9 Nov 2021 01:01:21 +0000 (17:01 -0800)
committerAdrian Prantl <aprantl@apple.com>
Tue, 9 Nov 2021 17:44:37 +0000 (09:44 -0800)
commitc9881c7d99c6e4073ed8de11cd3450ef23bd66fc
tree2e3c8b51cfed5ac3571f0bf6d4c7ee39428eec67
parent196554d42d329e45363afe2293d1fc19de75673d
Support looking up absolute symbols

The Swift stdlib uses absolute symbols in the dylib to communicate
feature flags to the process. LLDB's expression evaluator needs to be
able to find them. This wires up absolute symbols so they show up in
the symtab lookup command, which is also all that's needed for them to
be visible to the expression evaluator JIT.

rdar://85093828

Differential Revision: https://reviews.llvm.org/D113445
lldb/source/Symbol/Symbol.cpp
lldb/source/Symbol/Symtab.cpp
lldb/test/Shell/SymbolFile/absolute-symbol.s [new file with mode: 0644]