alignment of sections and memory within an EXE file
-
20-09-2019 - |
Question
What are the alignment of sections and memory within an EXE file I need to specify when creating using in the Mosa IL compiler?
Thanks.
Solution
It's typically the same as the page size, 4K for most CPUs.
OTHER TIPS
The sections within the PE file must be aligned on 4k boundaries.
You can involve the MOSA compiler properly like this:
mosacl.exe -a=x86 -f=PE --pe-file-alignment=4096 --map=hello.map -b=mb0.7 -o hello.exe
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow