blob: b10dfb532cd060b21b57d3c665790a6caf774e4e [file] [log] [blame]
Stephen Wilsonf325ba92010-07-13 23:07:23 +00001//===-- ObjectFileELF.h --------------------------------------- -*- C++ -*-===//
Chris Lattner30fdc8d2010-06-08 16:52:24 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef liblldb_ObjectFileELF_h_
11#define liblldb_ObjectFileELF_h_
12
13#include <stdint.h>
14#include <vector>
15
16#include "lldb/lldb-private.h"
Greg Clayton53239f02011-02-08 05:05:52 +000017#include "lldb/Host/FileSpec.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000018#include "lldb/Symbol/ObjectFile.h"
Michael Sartainc836ae72013-05-23 20:57:03 +000019#include "lldb/Core/UUID.h"
Todd Fialab91de782014-06-27 16:52:49 +000020#include "lldb/Core/ArchSpec.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000021
Stephen Wilsonf325ba92010-07-13 23:07:23 +000022#include "ELFHeader.h"
Chris Lattner30fdc8d2010-06-08 16:52:24 +000023
Ed Mastec113ff82013-12-02 17:49:13 +000024struct ELFNote
25{
26 elf::elf_word n_namesz;
27 elf::elf_word n_descsz;
28 elf::elf_word n_type;
29
30 std::string n_name;
31
32 ELFNote() : n_namesz(0), n_descsz(0), n_type(0)
33 {
34 }
35
36 /// Parse an ELFNote entry from the given DataExtractor starting at position
37 /// \p offset.
38 ///
39 /// @param[in] data
40 /// The DataExtractor to read from.
41 ///
42 /// @param[in,out] offset
43 /// Pointer to an offset in the data. On return the offset will be
44 /// advanced by the number of bytes read.
45 ///
46 /// @return
47 /// True if the ELFRel entry was successfully read and false otherwise.
48 bool
49 Parse(const lldb_private::DataExtractor &data, lldb::offset_t *offset);
50};
51
Stephen Wilsonf325ba92010-07-13 23:07:23 +000052//------------------------------------------------------------------------------
53/// @class ObjectFileELF
54/// @brief Generic ELF object file reader.
55///
56/// This class provides a generic ELF (32/64 bit) reader plugin implementing the
57/// ObjectFile protocol.
Chris Lattner30fdc8d2010-06-08 16:52:24 +000058class ObjectFileELF :
59 public lldb_private::ObjectFile
60{
61public:
62 //------------------------------------------------------------------
63 // Static Functions
64 //------------------------------------------------------------------
65 static void
66 Initialize();
67
68 static void
69 Terminate();
70
Greg Clayton57abc5d2013-05-10 21:47:16 +000071 static lldb_private::ConstString
Chris Lattner30fdc8d2010-06-08 16:52:24 +000072 GetPluginNameStatic();
73
74 static const char *
75 GetPluginDescriptionStatic();
76
77 static lldb_private::ObjectFile *
Greg Claytone72dfb32012-02-24 01:59:29 +000078 CreateInstance(const lldb::ModuleSP &module_sp,
Greg Clayton5ce9c562013-02-06 17:22:03 +000079 lldb::DataBufferSP& data_sp,
80 lldb::offset_t data_offset,
Chris Lattner30fdc8d2010-06-08 16:52:24 +000081 const lldb_private::FileSpec* file,
Greg Clayton5ce9c562013-02-06 17:22:03 +000082 lldb::offset_t file_offset,
83 lldb::offset_t length);
Chris Lattner30fdc8d2010-06-08 16:52:24 +000084
Greg Claytonc9660542012-02-05 02:38:54 +000085 static lldb_private::ObjectFile *
Greg Claytone72dfb32012-02-24 01:59:29 +000086 CreateMemoryInstance (const lldb::ModuleSP &module_sp,
Greg Claytonc9660542012-02-05 02:38:54 +000087 lldb::DataBufferSP& data_sp,
88 const lldb::ProcessSP &process_sp,
89 lldb::addr_t header_addr);
90
Greg Claytonf4d6de62013-04-24 22:29:28 +000091 static size_t
92 GetModuleSpecifications (const lldb_private::FileSpec& file,
93 lldb::DataBufferSP& data_sp,
94 lldb::offset_t data_offset,
95 lldb::offset_t file_offset,
96 lldb::offset_t length,
97 lldb_private::ModuleSpecList &specs);
Michael Sartain9f0013d2013-05-17 00:20:21 +000098
99 static bool
100 MagicBytesMatch (lldb::DataBufferSP& data_sp,
101 lldb::addr_t offset,
102 lldb::addr_t length);
103
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000104 //------------------------------------------------------------------
105 // PluginInterface protocol
106 //------------------------------------------------------------------
Greg Clayton57abc5d2013-05-10 21:47:16 +0000107 virtual lldb_private::ConstString
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000108 GetPluginName();
109
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000110 virtual uint32_t
111 GetPluginVersion();
112
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000113 //------------------------------------------------------------------
114 // ObjectFile Protocol.
115 //------------------------------------------------------------------
116 virtual
117 ~ObjectFileELF();
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000118
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000119 virtual bool
120 ParseHeader();
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000121
Steve Pucci9e02dac2014-02-06 19:02:19 +0000122 virtual bool
Greg Clayton751caf62014-02-07 22:54:47 +0000123 SetLoadAddress (lldb_private::Target &target,
124 lldb::addr_t value,
125 bool value_is_offset);
Steve Pucci9e02dac2014-02-06 19:02:19 +0000126
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000127 virtual lldb::ByteOrder
128 GetByteOrder() const;
129
Jim Ingham5aee1622010-08-09 23:31:02 +0000130 virtual bool
131 IsExecutable () const;
132
Greg Claytonc7bece562013-01-25 18:06:21 +0000133 virtual uint32_t
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000134 GetAddressByteSize() const;
135
Todd Fialafbd703a2014-09-15 22:33:39 +0000136 virtual lldb::AddressClass
137 GetAddressClass (lldb::addr_t file_addr);
138
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000139 virtual lldb_private::Symtab *
Greg Clayton3046e662013-07-10 01:23:25 +0000140 GetSymtab();
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000141
Ashok Thirumurthi35729bb2013-09-24 15:34:13 +0000142 virtual lldb_private::Symbol *
143 ResolveSymbolForAddress(const lldb_private::Address& so_addr, bool verify_unique);
144
Greg Clayton3046e662013-07-10 01:23:25 +0000145 virtual bool
146 IsStripped ();
147
148 virtual void
149 CreateSections (lldb_private::SectionList &unified_section_list);
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000150
151 virtual void
152 Dump(lldb_private::Stream *s);
153
154 virtual bool
Greg Clayton514487e2011-02-15 21:59:32 +0000155 GetArchitecture (lldb_private::ArchSpec &arch);
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000156
157 virtual bool
158 GetUUID(lldb_private::UUID* uuid);
159
Michael Sartaina7499c92013-07-01 19:45:50 +0000160 virtual lldb_private::FileSpecList
161 GetDebugSymbolFilePaths();
162
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000163 virtual uint32_t
164 GetDependentModules(lldb_private::FileSpecList& files);
165
Stephen Wilson2ab0a582011-01-15 00:08:44 +0000166 virtual lldb_private::Address
Ed Maste54803652013-10-11 17:39:07 +0000167 GetImageInfoAddress(lldb_private::Target *target);
Jim Ingham672e6f52011-03-07 23:44:08 +0000168
169 virtual lldb_private::Address
170 GetEntryPointAddress ();
Greg Clayton9e00b6a652011-07-09 00:41:34 +0000171
172 virtual ObjectFile::Type
173 CalculateType();
174
175 virtual ObjectFile::Strata
176 CalculateStrata();
Stephen Wilson2ab0a582011-01-15 00:08:44 +0000177
Ashok Thirumurthi4822d922013-07-11 20:39:00 +0000178 // Returns number of program headers found in the ELF file.
179 size_t
180 GetProgramHeaderCount();
181
182 // Returns the program header with the given index.
183 const elf::ELFProgramHeader *
184 GetProgramHeaderByIndex(lldb::user_id_t id);
185
186 // Returns segment data for the given index.
187 lldb_private::DataExtractor
188 GetSegmentDataByIndex(lldb::user_id_t id);
189
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000190private:
Greg Claytone72dfb32012-02-24 01:59:29 +0000191 ObjectFileELF(const lldb::ModuleSP &module_sp,
Greg Clayton5ce9c562013-02-06 17:22:03 +0000192 lldb::DataBufferSP& data_sp,
193 lldb::offset_t data_offset,
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000194 const lldb_private::FileSpec* file,
Greg Clayton5ce9c562013-02-06 17:22:03 +0000195 lldb::offset_t offset,
196 lldb::offset_t length);
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000197
Andrew MacPherson17220c12014-03-05 10:12:43 +0000198 ObjectFileELF (const lldb::ModuleSP &module_sp,
199 lldb::DataBufferSP& data_sp,
200 const lldb::ProcessSP &process_sp,
201 lldb::addr_t header_addr);
202
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000203 typedef std::vector<elf::ELFProgramHeader> ProgramHeaderColl;
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000204 typedef ProgramHeaderColl::iterator ProgramHeaderCollIter;
205 typedef ProgramHeaderColl::const_iterator ProgramHeaderCollConstIter;
206
Michael Sartaina7499c92013-07-01 19:45:50 +0000207 struct ELFSectionHeaderInfo : public elf::ELFSectionHeader
208 {
209 lldb_private::ConstString section_name;
210 };
211 typedef std::vector<ELFSectionHeaderInfo> SectionHeaderColl;
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000212 typedef SectionHeaderColl::iterator SectionHeaderCollIter;
213 typedef SectionHeaderColl::const_iterator SectionHeaderCollConstIter;
214
Stephen Wilson499b40e2011-03-30 16:07:05 +0000215 typedef std::vector<elf::ELFDynamic> DynamicSymbolColl;
216 typedef DynamicSymbolColl::iterator DynamicSymbolCollIter;
217 typedef DynamicSymbolColl::const_iterator DynamicSymbolCollConstIter;
218
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000219 /// Version of this reader common to all plugins based on this class.
220 static const uint32_t m_plugin_version = 1;
Todd Fiala4339f3a2014-03-25 19:29:09 +0000221 static const uint32_t g_core_uuid_magic;
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000222
223 /// ELF file header.
224 elf::ELFHeader m_header;
225
Michael Sartaina7499c92013-07-01 19:45:50 +0000226 /// ELF build ID.
Michael Sartainc836ae72013-05-23 20:57:03 +0000227 lldb_private::UUID m_uuid;
228
Michael Sartaina7499c92013-07-01 19:45:50 +0000229 /// ELF .gnu_debuglink file and crc data if available.
230 std::string m_gnu_debuglink_file;
231 uint32_t m_gnu_debuglink_crc;
232
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000233 /// Collection of program headers.
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000234 ProgramHeaderColl m_program_headers;
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000235
236 /// Collection of section headers.
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000237 SectionHeaderColl m_section_headers;
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000238
Stephen Wilson499b40e2011-03-30 16:07:05 +0000239 /// Collection of symbols from the dynamic table.
240 DynamicSymbolColl m_dynamic_symbols;
241
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000242 /// List of file specifications corresponding to the modules (shared
243 /// libraries) on which this object file depends.
Greg Clayton7b0992d2013-04-18 22:45:39 +0000244 mutable std::unique_ptr<lldb_private::FileSpecList> m_filespec_ap;
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000245
Jim Ingham672e6f52011-03-07 23:44:08 +0000246 /// Cached value of the entry point for this module.
247 lldb_private::Address m_entry_point_address;
Stephen Wilson499b40e2011-03-30 16:07:05 +0000248
Todd Fialab91de782014-06-27 16:52:49 +0000249 /// The architecture detected from parsing elf file contents.
250 lldb_private::ArchSpec m_arch_spec;
251
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000252 /// Returns a 1 based index of the given section header.
Greg Claytonc7bece562013-01-25 18:06:21 +0000253 size_t
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000254 SectionIndex(const SectionHeaderCollIter &I);
255
256 /// Returns a 1 based index of the given section header.
Greg Claytonc7bece562013-01-25 18:06:21 +0000257 size_t
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000258 SectionIndex(const SectionHeaderCollConstIter &I) const;
259
Todd Fiala4339f3a2014-03-25 19:29:09 +0000260 // Parses the ELF program headers.
261 static size_t
262 GetProgramHeaderInfo(ProgramHeaderColl &program_headers,
263 lldb_private::DataExtractor &data,
264 const elf::ELFHeader &header);
265
266 // Finds PT_NOTE segments and calculates their crc sum.
267 static uint32_t
268 CalculateELFNotesSegmentsCRC32(const ProgramHeaderColl& program_headers,
269 lldb_private::DataExtractor &data);
270
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000271 /// Parses all section headers present in this object file and populates
272 /// m_program_headers. This method will compute the header list only once.
273 /// Returns the number of headers parsed.
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000274 size_t
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000275 ParseProgramHeaders();
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000276
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000277 /// Parses all section headers present in this object file and populates
278 /// m_section_headers. This method will compute the header list only once.
279 /// Returns the number of headers parsed.
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000280 size_t
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000281 ParseSectionHeaders();
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000282
Todd Fialab91de782014-06-27 16:52:49 +0000283 /// Parses the elf section headers and returns the uuid, debug link name, crc, archspec.
Michael Sartaina7499c92013-07-01 19:45:50 +0000284 static size_t
285 GetSectionHeaderInfo(SectionHeaderColl &section_headers,
286 lldb_private::DataExtractor &data,
287 const elf::ELFHeader &header,
288 lldb_private::UUID &uuid,
289 std::string &gnu_debuglink_file,
Todd Fialab91de782014-06-27 16:52:49 +0000290 uint32_t &gnu_debuglink_crc,
291 lldb_private::ArchSpec &arch_spec);
Michael Sartaina7499c92013-07-01 19:45:50 +0000292
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000293 /// Scans the dynamic section and locates all dependent modules (shared
Greg Clayton710dd5a2011-01-08 20:28:42 +0000294 /// libraries) populating m_filespec_ap. This method will compute the
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000295 /// dependent module list only once. Returns the number of dependent
296 /// modules parsed.
297 size_t
298 ParseDependentModules();
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000299
Stephen Wilson499b40e2011-03-30 16:07:05 +0000300 /// Parses the dynamic symbol table and populates m_dynamic_symbols. The
301 /// vector retains the order as found in the object file. Returns the
302 /// number of dynamic symbols parsed.
303 size_t
304 ParseDynamicSymbols();
305
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000306 /// Populates m_symtab_ap will all non-dynamic linker symbols. This method
307 /// will parse the symbols only once. Returns the number of symbols parsed.
Stephen Wilson499b40e2011-03-30 16:07:05 +0000308 unsigned
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000309 ParseSymbolTable(lldb_private::Symtab *symbol_table,
Stephen Wilson499b40e2011-03-30 16:07:05 +0000310 lldb::user_id_t start_id,
Greg Clayton3046e662013-07-10 01:23:25 +0000311 lldb_private::Section *symtab);
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000312
Michael Sartaina7499c92013-07-01 19:45:50 +0000313 /// Helper routine for ParseSymbolTable().
314 unsigned
315 ParseSymbols(lldb_private::Symtab *symbol_table,
316 lldb::user_id_t start_id,
317 lldb_private::SectionList *section_list,
Greg Clayton3046e662013-07-10 01:23:25 +0000318 const size_t num_symbols,
Michael Sartaina7499c92013-07-01 19:45:50 +0000319 const lldb_private::DataExtractor &symtab_data,
320 const lldb_private::DataExtractor &strtab_data);
321
Stephen Wilson499b40e2011-03-30 16:07:05 +0000322 /// Scans the relocation entries and adds a set of artificial symbols to the
323 /// given symbol table for each PLT slot. Returns the number of symbols
324 /// added.
325 unsigned
326 ParseTrampolineSymbols(lldb_private::Symtab *symbol_table,
327 lldb::user_id_t start_id,
Michael Sartaina7499c92013-07-01 19:45:50 +0000328 const ELFSectionHeaderInfo *rela_hdr,
Stephen Wilson499b40e2011-03-30 16:07:05 +0000329 lldb::user_id_t section_id);
330
Andrew MacPherson17220c12014-03-05 10:12:43 +0000331 /// Relocates debug sections
332 unsigned
333 RelocateDebugSections(const elf::ELFSectionHeader *rel_hdr, lldb::user_id_t rel_id);
334
335 unsigned
336 RelocateSection(lldb_private::Symtab* symtab, const elf::ELFHeader *hdr, const elf::ELFSectionHeader *rel_hdr,
337 const elf::ELFSectionHeader *symtab_hdr, const elf::ELFSectionHeader *debug_hdr,
338 lldb_private::DataExtractor &rel_data, lldb_private::DataExtractor &symtab_data,
339 lldb_private::DataExtractor &debug_data, lldb_private::Section* rel_section);
340
341 /// Loads the section name string table into m_shstr_data. Returns the
342 /// number of bytes constituting the table.
343 size_t
344 GetSectionHeaderStringTable();
345
346 /// Utility method for looking up a section given its name. Returns the
347 /// index of the corresponding section or zero if no section with the given
348 /// name can be found (note that section indices are always 1 based, and so
349 /// section index 0 is never valid).
350 lldb::user_id_t
351 GetSectionIndexByName(const char *name);
352
353 // Returns the ID of the first section that has the given type.
354 lldb::user_id_t
355 GetSectionIndexByType(unsigned type);
356
Stephen Wilson499b40e2011-03-30 16:07:05 +0000357 /// Returns the section header with the given id or NULL.
Michael Sartaina7499c92013-07-01 19:45:50 +0000358 const ELFSectionHeaderInfo *
Stephen Wilson499b40e2011-03-30 16:07:05 +0000359 GetSectionHeaderByIndex(lldb::user_id_t id);
360
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000361 /// @name ELF header dump routines
362 //@{
363 static void
364 DumpELFHeader(lldb_private::Stream *s, const elf::ELFHeader& header);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000365
366 static void
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000367 DumpELFHeader_e_ident_EI_DATA(lldb_private::Stream *s,
368 unsigned char ei_data);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000369
370 static void
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000371 DumpELFHeader_e_type(lldb_private::Stream *s, elf::elf_half e_type);
372 //@}
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000373
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000374 /// @name ELF program header dump routines
375 //@{
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000376 void
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000377 DumpELFProgramHeaders(lldb_private::Stream *s);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000378
379 static void
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000380 DumpELFProgramHeader(lldb_private::Stream *s,
381 const elf::ELFProgramHeader &ph);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000382
383 static void
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000384 DumpELFProgramHeader_p_type(lldb_private::Stream *s, elf::elf_word p_type);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000385
386 static void
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000387 DumpELFProgramHeader_p_flags(lldb_private::Stream *s,
388 elf::elf_word p_flags);
389 //@}
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000390
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000391 /// @name ELF section header dump routines
392 //@{
393 void
394 DumpELFSectionHeaders(lldb_private::Stream *s);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000395
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000396 static void
397 DumpELFSectionHeader(lldb_private::Stream *s,
Michael Sartaina7499c92013-07-01 19:45:50 +0000398 const ELFSectionHeaderInfo& sh);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000399
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000400 static void
401 DumpELFSectionHeader_sh_type(lldb_private::Stream *s,
402 elf::elf_word sh_type);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000403
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000404 static void
405 DumpELFSectionHeader_sh_flags(lldb_private::Stream *s,
Greg Claytonc7bece562013-01-25 18:06:21 +0000406 elf::elf_xword sh_flags);
Stephen Wilsonf325ba92010-07-13 23:07:23 +0000407 //@}
408
409 /// ELF dependent module dump routine.
410 void
411 DumpDependentModules(lldb_private::Stream *s);
412
Stephen Wilson499b40e2011-03-30 16:07:05 +0000413 const elf::ELFDynamic *
414 FindDynamicSymbol(unsigned tag);
415
Stephen Wilson499b40e2011-03-30 16:07:05 +0000416 unsigned
417 PLTRelocationType();
Todd Fialab91de782014-06-27 16:52:49 +0000418
419 static lldb_private::Error
420 RefineModuleDetailsFromNote (lldb_private::DataExtractor &data, lldb_private::ArchSpec &arch_spec, lldb_private::UUID &uuid);
Chris Lattner30fdc8d2010-06-08 16:52:24 +0000421};
422
423#endif // #ifndef liblldb_ObjectFileELF_h_