mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-01 07:11:45 +00:00
MCJIT section loading should just skip non-text sections rather than
erroring out completely. Some modules produce sections that aren't referenced, so it's friendlier to clients like LLDB to just skip them, at least for now. llvm-svn: 131243
This commit is contained in:
parent
f3eb9e3262
commit
dc7e74edfa
@ -268,9 +268,9 @@ loadSegment32(const MachOObject *Obj,
|
||||
if (!Sect)
|
||||
return Error("unable to load section: '" + Twine(SectNum) + "'");
|
||||
|
||||
// FIXME: Improve check.
|
||||
// FIXME: For the time being, we're only loading text segments.
|
||||
if (Sect->Flags != 0x80000400)
|
||||
return Error("unsupported section type!");
|
||||
continue;
|
||||
|
||||
// Address and names of symbols in the section.
|
||||
typedef std::pair<uint64_t, StringRef> SymbolEntry;
|
||||
@ -403,9 +403,9 @@ loadSegment64(const MachOObject *Obj,
|
||||
if (!Sect)
|
||||
return Error("unable to load section: '" + Twine(SectNum) + "'");
|
||||
|
||||
// FIXME: Improve check.
|
||||
// FIXME: For the time being, we're only loading text segments.
|
||||
if (Sect->Flags != 0x80000400)
|
||||
return Error("unsupported section type!");
|
||||
continue;
|
||||
|
||||
// Address and names of symbols in the section.
|
||||
typedef std::pair<uint64_t, StringRef> SymbolEntry;
|
||||
|
Loading…
x
Reference in New Issue
Block a user