[PATCH] D45778: [COFF] Mark images with no exception handlers for /safeseh
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 18 13:39:39 PDT 2018
ruiu added inline comments.
================
Comment at: lld/COFF/Writer.cpp:833-834
+ // able to find the safe exception handler table.
+ if (Config->Machine == I386 && (!HasSafeExceptionHandlers ||
+ !Symtab->findUnderscore("_load_config_used")))
PE->DLLCharacteristics |= IMAGE_DLL_CHARACTERISTICS_NO_SEH;
----------------
Maybe we should move these conditions to createSEHTable and make it a Config member (such as Config->SEH?)
https://reviews.llvm.org/D45778
More information about the llvm-commits
mailing list