Commit e725fba5 authored by Tom Stellard's avatar Tom Stellard
Browse files

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
parent c4c41157
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -275,7 +275,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