Skip to content

Commit

Permalink
Drop /MERGE from linker flags in DSC
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattiwatti committed Oct 15, 2023
1 parent b77c489 commit 0f5dca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EfiGuard.props
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<UACUIAccess />
<TypeLibraryResourceID />
<AdditionalOptions>/ALIGN:0x200 /FILEALIGN:0x200 /SECTION:.pdata,!D /SECTION:.xdata,!D /OPT:ICF=10 /IGNORE:4254 /IGNORE:4281 /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB% %(AdditionalOptions)</AdditionalOptions>
<MergeSections>.rdata=.text</MergeSections>
<MergeSections>.rdata=.data</MergeSections>
<LinkErrorReporting />
<ProfileGuidedDatabase />
<EntryPointSymbol>EfiMain</EntryPointSymbol>
Expand Down
4 changes: 2 additions & 2 deletions EfiGuardPkg.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@
MSFT:*_*_*_CC_FLAGS = /Qspectre-

# Use sane linker flags instead of EDK2 defaults
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%
MSFT:*_*_*_DLINK_FLAGS = /ALIGN:0x1000 /FILEALIGN:0x200 /SECTION:.pdata,!D /SECTION:.xdata,!D /DEBUG:FULL /NOVCFEATURE /NOCOFFGRPINFO /PDBALTPATH:%_PDB%
INTEL:*_*_*_DLINK_FLAGS = /ALIGN:0x1000 /FILEALIGN:0x200 /SECTION:.pdata,!D /SECTION:.xdata,!D /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"
Expand Down

0 comments on commit 0f5dca4

Please sign in to comment.