Displaying 1 result from an estimated 1 matches for "sectionalign".
Did you mean:
section_align
2019 Aug 03
2
lld-link /ALIGN option doesn't work for the "execute in place (XIP)"
Hi Rui,
We meet a problem when enable the execute in place (XIP, https://en.wikipedia.org/wiki/Execute_in_place) for uefi firmware with lld-link. We need to set the COFF executable file SectionAlignment through the lld-link /ALIGN option, but we find the SectionAlignment is hardcoded to 4096 which cause the /ALIGN option doesn't work at all. Below is the hardcode in lld:
lld\COFF\Writer.h
static const int pageSize = 4096;
lld\COFF\Writer.cpp
pe->SectionAlignment = pageSize;
The ue...