Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2309b58

Browse files
smeenaiatgreen
authored andcommitted
Mark sysv.S as SafeSEH compatible (#438)
It contains no exception handler, so we can just emit the special @feat.00 symbol to indicate that it's trivially SafeSEH compatible. SafeSEH only applies to x86 and not x86-64, hence its inclusion in the x86-specific block. See [1] for details. [1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms680547(v=vs.85).aspx#the_.sxdata_section_
1 parent 1d70405 commit 2309b58

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/x86/sysv.S

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,15 @@ L(SFDE9):
10351035
L(EFDE9):
10361036
#endif /* !FFI_NO_RAW_API */
10371037

1038+
#ifdef _WIN32
1039+
.def @feat.00;
1040+
.scl 3;
1041+
.type 0;
1042+
.endef
1043+
.globl @feat.00
1044+
@feat.00 = 1
1045+
#endif
1046+
10381047
#endif /* ifndef _MSC_VER */
10391048
#endif /* ifndef __x86_64__ */
10401049

0 commit comments

Comments
 (0)