Index: build/config/win/BUILD.gn |
diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn |
index a93ed30daa3cfa23bc18911b193eb64dbccf1482..d1f670e9fb180c06f133119c61423a303b83f9f2 100644 |
--- a/build/config/win/BUILD.gn |
+++ b/build/config/win/BUILD.gn |
@@ -12,6 +12,14 @@ assert(is_win) |
# is applied to all targets. It is here to separate out the logic that is |
# Windows-only. |
config("compiler") { |
+ asmflags = [ |
+ # When /SAFESEH is specified, the linker will only produce an image if it |
+ # can also produce a table of the image's safe exception handlers. This |
+ # table specifies for the operating system which exception handlers are |
+ # valid for the image. |
+ "/SAFESEH", |
+ ] |
+ |
cflags = [ |
"/Gy", # Enable function-level linking. |
"/GS", # Enable buffer security checking. |