diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-26 15:27:52 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-26 15:27:52 +0100 |
| commit | 1f17a575284a43f37c880900e8ff7347f97ad82d (patch) | |
| tree | 40e9acb991e441c94de8c38aae148100271901e0 /src | |
| parent | 8c2ea218a5d14527cef0eb957e97de27af28d5b1 (diff) | |
| download | box64-1f17a575284a43f37c880900e8ff7347f97ad82d.tar.gz box64-1f17a575284a43f37c880900e8ff7347f97ad82d.zip | |
Set stack alignment to be 16bytes minimum
Diffstat (limited to 'src')
| -rwxr-xr-x | src/elfs/elfloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 3ee0cde2..f734606e 100755 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -106,7 +106,7 @@ int CalcLoadAddr(elfheader_t* head) } head->stacksz = 1024*1024; //1M stack size default? - head->stackalign = 4; // default align for stack + head->stackalign = 16; // default align for stack for (int i=0; i<head->numPHEntries; ++i) { if(head->PHEntries[i].p_type == PT_LOAD) { uintptr_t phend = head->PHEntries[i].p_vaddr - head->vaddr + head->PHEntries[i].p_memsz; |