Commit 4892a42
committed
UefiPayloadPkg: align DXE images for page protections
Apply -z common-page-size=0x1000 to IA32/X64 DXE core, DXE
drivers, UEFI drivers and UEFI applications in UefiPayloadPkg.
Apply the corresponding 64 KiB alignment to AARCH64 DXE images.
UefiPayload already links DXE runtime drivers with an architecture-
appropriate common page size, but other DXE images still inherit the
toolchain default. When that default is larger, PE/COFF sections are
not page-aligned and DXE Core cannot apply page-granular image
protections such as NX.
Align the non-runtime DXE images the same way so UefiPayload opts into
image protection consistently across supported architectures. Only SEC
can be IA32 in UefiPayload; DXE Core and onward are always 64-bit.
Signed-off-by: Sean Rhodes <sean@starlabs.systems>1 parent 27ac8fa commit 4892a42
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
205 | 215 | | |
206 | 216 | | |
207 | 217 | | |
| |||
0 commit comments