[PATCH] D41252: [MinGW] Implement the --no-seh flag

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 12:29:42 PST 2017


mstorsjo added a comment.

In https://reviews.llvm.org/D41252#955754, @rnk wrote:

> In https://reviews.llvm.org/D41252#955741, @mstorsjo wrote:
>
> > In https://reviews.llvm.org/D41252#955735, @rnk wrote:
> >
> > > Does link.exe set this flag if there are no handlers in .sxdata?
> >
> >
> > It doesn't seem so - a plain C hello world exe won't have it set.
>
>
> Well, it will link the CRT, which has _except_handler4. You would need to make a no CRT test case and check that. It's probably simplest with a DLL with a custom entry point. You can also use llvm-readobj -coff-load-config to see that it doesn't have a load config directory.


Oh, indeed. Yes, with such a DLL, I get the flag set automatically.


https://reviews.llvm.org/D41252





More information about the llvm-commits mailing list