[PATCH] D41275: [LLD] [MinGW] Ignore the --no-seh flag

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 15 00:07:14 PST 2017


mstorsjo created this revision.
mstorsjo added reviewers: ruiu, rnk.

The COFF linker automatically sets the IMAGE_DLL_CHARACTERISTICS_NO_SEH when suitable, similarly to link.exe.

(This description only is correct as long as https://reviews.llvm.org/D41252 is merged first, but I guess this change in itself could be merged independently.)


https://reviews.llvm.org/D41275

Files:
  MinGW/Options.td


Index: MinGW/Options.td
===================================================================
--- MinGW/Options.td
+++ MinGW/Options.td
@@ -55,6 +55,7 @@
 def high_entropy_va: F<"high-entropy-va">, HelpText<"Enable 64-bit ASLR">;
 def major_image_version: S<"major-image-version">;
 def minor_image_version: S<"minor-image-version">;
+def no_seh: F<"no-seh">;
 def nxcompat: F<"nxcompat">, HelpText<"Enable data execution prevention">;
 def pic_executable: F<"pic-executable">;
 def sysroot: J<"sysroot">, HelpText<"Sysroot">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41275.127074.patch
Type: text/x-patch
Size: 525 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171215/04e3142b/attachment.bin>


More information about the llvm-commits mailing list