mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[RuntimeDyld] Fix a bug in RuntimeDyld::loadObjectImpl that was over-allocating
space for common symbols. Patch by Dmitry Sidorov. Thanks Dmitry! Differential revision: https://reviews.llvm.org/D50240 llvm-svn: 340125
This commit is contained in:
parent
491720ca70
commit
19ebb56989
@ -277,7 +277,7 @@ RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) {
|
||||
uint64_t Size = I->getCommonSize();
|
||||
if (!CommonAlign)
|
||||
CommonAlign = Align;
|
||||
CommonSize += alignTo(CommonSize, Align) + Size;
|
||||
CommonSize = alignTo(CommonSize, Align) + Size;
|
||||
CommonSymbolsToAllocate.push_back(*I);
|
||||
}
|
||||
} else
|
||||
|
Loading…
Reference in New Issue
Block a user