mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 15:53:42 +00:00
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
This commit is contained in:
parent
73df3c9721
commit
0b82f77e66
@ -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<unsigned, 8> Offsets;
|
||||
for (unsigned i = 0; i != GVs.size(); ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user