mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Fixed the 32-bit runtime dynamic loader to allocate
code sections when needed. It just had a conditional the wrong way around. llvm-svn: 151777
This commit is contained in:
parent
16bdd01e87
commit
171b2ddfbd
@ -150,7 +150,7 @@ loadSegment32(const MachOObject *Obj,
|
||||
// Allocate memory via the MM for the section.
|
||||
uint8_t *Buffer;
|
||||
uint32_t SectionID = Sections.size();
|
||||
if (Sect->Flags != 0x80000400)
|
||||
if (Sect->Flags == 0x80000400)
|
||||
Buffer = MemMgr->allocateCodeSection(Sect->Size, Sect->Align, SectionID);
|
||||
else
|
||||
Buffer = MemMgr->allocateDataSection(Sect->Size, Sect->Align, SectionID);
|
||||
|
Loading…
Reference in New Issue
Block a user