mirror of
https://github.com/FEX-Emu/FEX.git
synced 2025-02-17 05:18:49 +00:00
FEXLoader: Align stack base
This ensures that __libc_stack_end is aligned, the same way it is on native.
This commit is contained in:
parent
e675f4241a
commit
4a67893f1d
@ -725,6 +725,9 @@ public:
|
||||
uint64_t ExecFNLocation = TotalArgumentMemSize;
|
||||
TotalArgumentMemSize += Args[0].size() + 1;
|
||||
|
||||
// Align the argument block to 16 bytes to keep the stack aligned
|
||||
TotalArgumentMemSize = FEXCore::AlignUp(TotalArgumentMemSize, 16);
|
||||
|
||||
// Offset the stack by how much memory we need
|
||||
StackPointer -= TotalArgumentMemSize;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user