diff --git a/EfiGuard.props b/EfiGuard.props index 4663324..aa2c7ce 100644 --- a/EfiGuard.props +++ b/EfiGuard.props @@ -57,7 +57,6 @@ UseLinkTimeCodeGeneration 0 - 4096 true false @@ -68,7 +67,7 @@ - /SECTION:.xdata,D /SECTION:.pdata,D /OPT:ICF=10 /IGNORE:4254 /IGNORE:4281 /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB% %(AdditionalOptions) + /ALIGN:0x200 /FILEALIGN:0x200 /SECTION:.pdata,!D /SECTION:.xdata,!D /OPT:ICF=10 /IGNORE:4254 /IGNORE:4281 /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB% %(AdditionalOptions) .rdata=.text diff --git a/EfiGuardDxe/EfiGuardDxe.vcxproj b/EfiGuardDxe/EfiGuardDxe.vcxproj index b0e2373..0b95d46 100644 --- a/EfiGuardDxe/EfiGuardDxe.vcxproj +++ b/EfiGuardDxe/EfiGuardDxe.vcxproj @@ -33,7 +33,6 @@ UefiDriverEntryPoint.lib;BaseMemoryLib.lib;%(AdditionalDependencies) EFI Runtime - 4096 diff --git a/EfiGuardPkg.dsc b/EfiGuardPkg.dsc index 4c998af..49fddb3 100644 --- a/EfiGuardPkg.dsc +++ b/EfiGuardPkg.dsc @@ -87,8 +87,8 @@ MSFT:*_*_*_CC_FLAGS = /Qspectre- # Use sane linker flags instead of EDK2 defaults - MSFT:*_*_*_DLINK_FLAGS = /ALIGN:0x1000 /FILEALIGN:0x200 /SECTION:.pdata,!D /MERGE:.rdata=.text /DEBUG:FULL /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB% - INTEL:*_*_*_DLINK_FLAGS = /ALIGN:0x1000 /FILEALIGN:0x200 /SECTION:.pdata,!D /MERGE:.rdata=.text /DEBUG:FULL /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB% + MSFT:*_*_*_DLINK_FLAGS = /ALIGN:0x1000 /FILEALIGN:0x200 /SECTION:.pdata,!D /SECTION:.xdata,!D /MERGE:.rdata=.text /DEBUG:FULL /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB% + INTEL:*_*_*_DLINK_FLAGS = /ALIGN:0x1000 /FILEALIGN:0x200 /SECTION:.pdata,!D /SECTION:.xdata,!D /MERGE:.rdata=.text /DEBUG:FULL /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB% !if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANGPDB" GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000 !else if $(TOOL_CHAIN_TAG) == "CLANGPDB"