Skip to content

Commit

Permalink
More Win Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredTate committed Mar 29, 2024
1 parent 894ef90 commit 5c6c602
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/guix/patches/binutils-mingw-w64-disable-flags.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Description: Add disable opposites to the security-related flags
Author: Stephen Kitt <[email protected]>

This patch adds "no-" variants to disable the various security flags:
"disable-dynamicbase", "disable-nxcompat", "no-high-entropy-va", "disable-reloc-section".
"disable-dynamicbase", "disable-nxcompat", "disable-high-entropy-va", "disable-reloc-section".

--- a/ld/emultempl/pe.em
+++ b/ld/emultempl/pe.em
Expand Down Expand Up @@ -111,7 +111,7 @@ This patch adds "no-" variants to disable the various security flags:
{"enable-long-section-names", no_argument, NULL, OPTION_ENABLE_LONG_SECTION_NAMES},
{"disable-long-section-names", no_argument, NULL, OPTION_DISABLE_LONG_SECTION_NAMES},
{"high-entropy-va", no_argument, NULL, OPTION_HIGH_ENTROPY_VA},
+ {"no-high-entropy-va", no_argument, NULL, OPTION_NO_HIGH_ENTROPY_VA},
+ {"disable-high-entropy-va", no_argument, NULL, OPTION_NO_HIGH_ENTROPY_VA},
{"dynamicbase",no_argument, NULL, OPTION_DYNAMIC_BASE},
+ {"disable-dynamicbase", no_argument, NULL, OPTION_NO_DYNAMIC_BASE},
{"forceinteg", no_argument, NULL, OPTION_FORCE_INTEGRITY},
Expand All @@ -132,7 +132,7 @@ This patch adds "no-" variants to disable the various security flags:
in object files\n"));
fprintf (file, _(" --high-entropy-va Image is compatible with 64-bit address space\n\
layout randomization (ASLR)\n"));
+ fprintf (file, _(" --no-high-entropy-va Image is not compatible with 64-bit ASLR\n"));
+ fprintf (file, _(" --disable-high-entropy-va Image is not compatible with 64-bit ASLR\n"));
fprintf (file, _(" --dynamicbase Image base address may be relocated using\n\
address space layout randomization (ASLR)\n"));
+ fprintf (file, _(" --disable-dynamicbase Image base address may not be relocated\n"));
Expand Down

0 comments on commit 5c6c602

Please sign in to comment.