Skip to content

Commit e725fba

Browse files
committed
Merging r340125:
------------------------------------------------------------------------ r340125 | lhames | 2018-08-18 11:38:37 -0700 (Sat, 18 Aug 2018) | 6 lines [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: 348555
1 parent c4c4115 commit e725fba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) {
275275
uint64_t Size = I->getCommonSize();
276276
if (!CommonAlign)
277277
CommonAlign = Align;
278-
CommonSize += alignTo(CommonSize, Align) + Size;
278+
CommonSize = alignTo(CommonSize, Align) + Size;
279279
CommonSymbolsToAllocate.push_back(*I);
280280
}
281281
} else

0 commit comments

Comments
 (0)