forked from OSchip/llvm-project
[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
9c1761a6fd
commit
8e296229b5
|
@ -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