[PATCH] D20346: [stack-protection] Add support for MSVC buffer security check
Etienne Bergeron via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 15:56:49 PDT 2016
etienneb added a comment.
I'm gonna take a look to WinEHPrepare.
But, there is a link between EH and GS.
struct _EH4_SCOPETABLE {
DWORD GSCookieOffset;
DWORD GSCookieXOROffset;
DWORD EHCookieOffset;
DWORD EHCookieXOROffset;
_EH4_SCOPETABLE_RECORD ScopeRecord[1];
};
When using version 4 of the exception handler, the GS cookie can be present.
GSCookieOffset = -2 means that GS cookie is not used. EH cookie is always present. Offsets are ebp relative.
http://reviews.llvm.org/D20346
More information about the llvm-commits
mailing list