summaryrefslogtreecommitdiff
path: root/SCons/utils.py
diff options
context:
space:
mode:
authorThomas Gaugler <thomas@dadie.net>2024-04-29 14:07:21 +0200
committerThomas Gaugler <thomas@dadie.net>2024-04-29 14:07:21 +0200
commit008f758a95f4610273c995ddfb2e2857937cd43a (patch)
treea3c37fc8dbf343b5083f7a70a56aa9b5cf755b81 /SCons/utils.py
parentaddd080acadda425c2d2e89d9e643b8a872af84b (diff)
Keep Structured Exception Handling (SEH) flag
Forwarded: not-needed Gbp-Pq: Name keep-seh.patch
Diffstat (limited to 'SCons/utils.py')
-rwxr-xr-xSCons/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/SCons/utils.py b/SCons/utils.py
index 941e582..160e5b3 100755
--- a/SCons/utils.py
+++ b/SCons/utils.py
@@ -248,8 +248,8 @@ def SetPESecurityFlagsWorker(filepath):
pe.WriteCharacteristics(ifh_c)
ioh_dc = pe.ReadDllCharacteristics()
ioh_dc |= 0x0100 # +IMAGE_DLLCHARACTERISTICS_NX_COMPAT (DEP)
- if pe.ReadMachine() != 0xaa64: # ARM64 forces exception directory?
- ioh_dc |= 0x0400 # +IMAGE_DLLCHARACTERISTICS_NO_SEH
+ #if pe.ReadMachine() != 0xaa64: # ARM64 forces exception directory?
+ # ioh_dc |= 0x0400 # +IMAGE_DLLCHARACTERISTICS_NO_SEH
ioh_dc |= 0x8000 # +IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE (TODO: Should we set this on .DLLs?)
if not (ifh_c & 0x0001): # IMAGE_FILE_RELOCS_STRIPPED?
ioh_dc |= 0x0040 # +IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE (ASLR)