From 31a2f8f9f55ebdbb02da6c3c08a35fe251c72595 Mon Sep 17 00:00:00 2001 From: Tamas Berghammer Date: Thu, 25 Feb 2016 12:23:43 +0000 Subject: 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/source/Symbol/ObjectFile.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/Symbol/ObjectFile.cpp') diff --git a/lldb/source/Symbol/ObjectFile.cpp b/lldb/source/Symbol/ObjectFile.cpp index c7ecb76c087..2ee3a634487 100644 --- a/lldb/source/Symbol/ObjectFile.cpp +++ b/lldb/source/Symbol/ObjectFile.cpp @@ -379,6 +379,7 @@ ObjectFile::GetAddressClass (addr_t file_addr) case eSectionTypeARMextab: case eSectionTypeCompactUnwind: return eAddressClassRuntime; + case eSectionTypeAbsoluteAddress: case eSectionTypeELFSymbolTable: case eSectionTypeELFDynamicSymbols: case eSectionTypeELFRelocationEntries: -- cgit v1.2.3