search for: filealign

Displaying 1 result from an estimated 1 matches for "filealign".

Did you mean: file_align
2019 Aug 03
2
lld-link /ALIGN option doesn't work for the "execute in place (XIP)"
...firmware need to directly run in ROM device (in XIP way) before the system memory is ready. These XIP executable files are not loaded in memory and their section running alignment is just same as the alignment in file. With MSVC link.exe, we can use the /ALIGN option to set SectionAlignment same as FileAlignment to ensure the XIP executable file has correct running alignment. But with lld-link, we cannot change the XIP file SectionAlignment value 4096 because it is hardcoded. So, we have to change the FileAlignment to 4096 to match the SectionAlignment instead, but the big FileAlignment value (4096) ca...