From 0b82f77e662790ab3c230932f5309c5105812c26 Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Mon, 2 Mar 2009 23:10:14 +0000 Subject: [PATCH] Fix the calculation for how big the allocated stub needs to be. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65895 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/JIT/JITEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ExecutionEngine/JIT/JITEmitter.cpp b/lib/ExecutionEngine/JIT/JITEmitter.cpp index 1fbeba923c3..5c6236dcaeb 100644 --- a/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -1329,7 +1329,7 @@ void JIT::updateDlsymStubTable() { return; // Calculate the size of the stub info - unsigned offset = 4 + 4 * GVs.size(); + unsigned offset = 4 + 4 * GVs.size() + sizeof(intptr_t) * GVs.size(); SmallVector Offsets; for (unsigned i = 0; i != GVs.size(); ++i) { -- 2.34.1