[PATCH] D45778: [COFF] Mark images with no exception handlers for /safeseh

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 18 11:10:42 PDT 2018


mstorsjo added a comment.

In https://reviews.llvm.org/D45778#1071192, @rnk wrote:

> @mstorsjo will this be a problem for mingw? Does the mingw CRT provide a load config for each image?


I have no idea what a load config is - what should I look for and where?

> This could be an undesirable behavior change if mingw does not provide a load config, and the user links in a 32-bit object file that has exception handlers that they don't actually need for program correctness, but now the DLL is marked as not using safe SEH.

Fwiw, no mingw setups use SEH for exceptions on i386 so far - it's only used on x86_64. On i386, it's either dwarf or sjlj.

What effect does it have if a DLL is marked as not using safe SEH?


https://reviews.llvm.org/D45778





More information about the llvm-commits mailing list