Skip to content

Commit

Permalink
Platform/Intel: Force PE/COFF sections 4KB aligned
Browse files Browse the repository at this point in the history
Force PE/COFF sections to be aligned at 4KB boundaries
to support MemoryAttribute table.

Signed-off-by: Jiaxin Wu <[email protected]>
  • Loading branch information
jiaxinwu authored and ChaselChiu committed Sep 18, 2024
1 parent 2e502d3 commit bd842b1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@
#[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
# MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096
# GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000

[BuildOptions.common.EDKII.MM_CORE_STANDALONE, BuildOptions.common.EDKII.MM_STANDALONE]
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 /FILEALIGN:4096

0 comments on commit bd842b1

Please sign in to comment.