Add support for handling absolute symbols in ELF
authorTamas Berghammer <tberghammer@google.com>
Thu, 25 Feb 2016 12:23:43 +0000 (12:23 +0000)
committerTamas Berghammer <tberghammer@google.com>
Thu, 25 Feb 2016 12:23:43 +0000 (12:23 +0000)
commit31a2f8f9f55ebdbb02da6c3c08a35fe251c72595
treeb0c72671aa1f9a908af990402a49b59b851530a6
parent72ac8a840fb0ea4d72747b3f5dcf260dcd345672
Add support for handling absolute symbols in ELF

Most address represented in lldb as section plus offset and handling of
absolute addresses is problematic in several location because of lack
of necessary information (e.g. Target) or because of performance issues.

This CL change the way ObjectFileELF handle the absolute symbols with
creating a pseudo section for each symbol. With this change all existing
code designed to work with addresses in the form of section plus offset
will work with absolute symbols as well.

Differential revision: http://reviews.llvm.org/D17450

llvm-svn: 261859
lldb/include/lldb/lldb-enumerations.h
lldb/source/Plugins/JITLoader/GDB/JITLoaderGDB.cpp
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
lldb/source/Symbol/ObjectFile.cpp
lldb/source/Utility/ConvertEnum.cpp