summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
diff options
context:
space:
mode:
authorMatt Kopec <Matt.Kopec@intel.com>2013-02-27 20:13:38 +0000
committerMatt Kopec <Matt.Kopec@intel.com>2013-02-27 20:13:38 +0000
commit00049b8b969f19908ac09df0e1e1debca4271eef (patch)
tree2137b2c54fd50092ab429d44f4fa5d3c90eee4bf /lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
parent2e419768938efe2dff0767490791f71976d00e54 (diff)
downloadbcm5719-llvm-00049b8b969f19908ac09df0e1e1debca4271eef.tar.gz
bcm5719-llvm-00049b8b969f19908ac09df0e1e1debca4271eef.zip
Add GNU indirect function support in expressions for Linux.
llvm-svn: 176206
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp')
-rw-r--r--lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
index 2cee5c01da9..42bfefe8d62 100644
--- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
+++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
@@ -784,6 +784,12 @@ ParseSymbols(Symtab *symtab,
// STB_LOCAL symbols for the file, if it is present.
symbol_type = eSymbolTypeObjectFile;
break;
+
+ case STT_GNU_IFUNC:
+ // The symbol is associated with an indirect function. The actual
+ // function will be resolved if it is referenced.
+ symbol_type = eSymbolTypeResolver;
+ break;
}
}
OpenPOWER on IntegriCloud