diff options
| author | Nate DeSimone <nathaniel.l.desimone@intel.com> | 2026-10-16 06:46:38 +0300 |
|---|---|---|
| committer | Nate DeSimone <nathaniel.l.desimone@intel.com> | 2026-10-17 01:59:42 +0300 |
| commit | 1c500d13a653cf0f556ecf7ce703c12874247efc (patch) | |
| tree | ce10d1d19f825d96d56f465b8d6aabe4b4909bfa /Platform | |
| parent | efc9f22d0fafae12a577986eddc1ac8da0c12203 (diff) | |
| download | edk2-platforms-master.tar.xz | |
CLANGPDB's tool chain family is defined as GCC in tools_def.template,
so the GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 overrides in
OpenBoardPkgBuildOption.dsc were also applied to CLANGPDB's lld-link.
lld-link does not accept "-z <value>" when linking PE/COFF images.
Add CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096
to the DXE and SMM driver sections, so CLANGPDB gets the same 4KB
section alignment.
Signed-off-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
Diffstat (limited to 'Platform')
| -rw-r--r-- | Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgBuildOption.dsc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgBuildOption.dsc b/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgBuildOption.dsc index 28e3c8dd69..6f477f2d83 100644 --- a/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgBuildOption.dsc +++ b/Platform/Intel/SimicsOpenBoardPkg/BoardX58Ich10/OpenBoardPkgBuildOption.dsc @@ -71,11 +71,13 @@ [BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
+ CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096
# Force PE/COFF sections to be aligned at 4KB boundaries to support MemoryAttribute table
[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER, BuildOptions.common.EDKII.DXE_DRIVER, BuildOptions.common.EDKII.UEFI_DRIVER, BuildOptions.common.EDKII.DXE_CORE]
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
+ CLANGPDB:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096
[BuildOptions.common.EDKII.MM_CORE_STANDALONE, BuildOptions.common.EDKII.MM_STANDALONE]
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:4096 /FILEALIGN:4096
|
