From 9e02dacddf24c649b256d476f0121c1ce52be8ff Mon Sep 17 00:00:00 2001 From: Steve Pucci Date: Thu, 6 Feb 2014 19:02:19 +0000 Subject: Factor some methods that were in DynamicLoaderPOSIXDYLD. Move some code that was in DynamicLoaderPOSIXDLYD into the base class DynamicLoader. In the case of UpdateLoadedSections(), the test to see whether a file is loadable (its address is zero) is not generally applicable so that test is changed to a more universally applicable check for the SHF_ALLOC flag on the section. Also make it explicit that the reading of the module_id in DynamicLoaderPOSIXDYLD::GetThreadLocalData() is using a hardcoded size (of module_id) of 4, which might not be appropriate on big-endian 64-bit systems, leaving a FIXME comment in place. llvm-svn: 200939 --- lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h') diff --git a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h index a2ab9b8f370..4fb0250108a 100644 --- a/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h +++ b/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h @@ -118,6 +118,9 @@ public: virtual bool ParseHeader(); + virtual bool + SetLoadAddress(lldb_private::Target &target, lldb::addr_t base_addr); + virtual lldb::ByteOrder GetByteOrder() const; -- cgit v1.2.3