[lldb][COFF] Add note to forwarder export symbols in symtab
authorAlvin Wong <alvin@alvinhc.com>
Wed, 28 Sep 2022 09:45:38 +0000 (12:45 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 28 Sep 2022 09:57:11 +0000 (12:57 +0300)
commitacf7d081198f380d6ad2a1b859930e50a9cf2dae
tree8692b92bf04a650fea138365bae3adbf5f5f44f6
parent7ebff6ab26aa03423c61e0370377f11725184199
[lldb][COFF] Add note to forwarder export symbols in symtab

Forwarder exports do not point to a real function or variable. Instead
they point to a string describing which DLL and symbol to forward to.
Any imports which uses them will be redirected by the loader
transparently. These symbols do not have much use in LLDB, but keep them
just in case someone find it useful. Also set a synthesized name with
the forwarder string for informational purpose.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D134518
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
lldb/test/Shell/ObjectFile/PECOFF/symbols-forwarder-export.yaml [new file with mode: 0644]