Skip to content

Commit

Permalink
Merge pull request #1593 from smeenai/safeseh
Browse files Browse the repository at this point in the history
Mark assembly files as SafeSEH compatible
  • Loading branch information
compnerd authored Jun 13, 2018
2 parents f20c62a + ff88e27 commit 7b6b7ac
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions CoreFoundation/Base.subproj/CFAsmMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,16 @@
#define NO_EXEC_STACK_DIRECTIVE
#endif

.macro SAFESEH_REGISTRATION_DIRECTIVE
#if defined(_WIN32) && defined(_M_IX86)
.def @feat.00
.scl 3
.type 0
.endef
.globl @feat.00
@feat.00 = 1
#endif
.endm

#endif

2 changes: 1 addition & 1 deletion CoreFoundation/String.subproj/CFCharacterSetData.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ _C_LABEL(__CFCharacterSetBitmapDataSize):
.int _C_LABEL(__CFCharacterSetBitmapDataEnd) - _C_LABEL(__CFCharacterSetBitmapData)

NO_EXEC_STACK_DIRECTIVE

SAFESEH_REGISTRATION_DIRECTIVE
2 changes: 1 addition & 1 deletion CoreFoundation/String.subproj/CFUniCharPropertyDatabase.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ _C_LABEL(__CFUniCharPropertyDatabaseSize):
.int _C_LABEL(__CFUniCharPropertyDatabaseEnd) - _C_LABEL(__CFUniCharPropertyDatabase)

NO_EXEC_STACK_DIRECTIVE

SAFESEH_REGISTRATION_DIRECTIVE
2 changes: 1 addition & 1 deletion CoreFoundation/String.subproj/CFUnicodeData.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ _C_LABEL(__CFUnicodeDataLSize):
#endif

NO_EXEC_STACK_DIRECTIVE

SAFESEH_REGISTRATION_DIRECTIVE

0 comments on commit 7b6b7ac

Please sign in to comment.