diff options
author | Sean Callanan <scallanan@apple.com> | 2012-03-01 00:15:29 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-03-01 00:15:29 +0000 |
commit | 996d6fdfb4242f935a8c97cbfa0af5ba6db4a743 (patch) | |
tree | 189b6ee1f417736138a9240debfc6d3cd3e19585 /lib/ExecutionEngine/RuntimeDyld | |
parent | 6c449ebbe6b5e9909ee7a5673b4892d30b9c3ce8 (diff) | |
download | llvm-996d6fdfb4242f935a8c97cbfa0af5ba6db4a743.tar.gz llvm-996d6fdfb4242f935a8c97cbfa0af5ba6db4a743.tar.bz2 llvm-996d6fdfb4242f935a8c97cbfa0af5ba6db4a743.tar.xz |
Fixed the 32-bit runtime dynamic loader to allocate
code sections when needed. It just had a conditional
the wrong way around.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld')
-rw-r--r-- | lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp index 4553ef42df..c11b2c31c3 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp @@ -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); |