Enable /SAFESEH for i686-pc-windows-msvc

This commit is contained in:
Oliver Middleton 2016-02-09 17:20:32 +00:00
parent 1da127bbd3
commit c3320c0498

View File

@ -18,6 +18,11 @@ pub fn target() -> Target {
// space available to x86 Windows binaries on x86_64.
base.pre_link_args.push("/LARGEADDRESSAWARE".to_string());
// Ensure the linker will only produce an image if it can also produce a table of
// the image's safe exception handlers.
// https://msdn.microsoft.com/en-us/library/9a89h429.aspx
base.pre_link_args.push("/SAFESEH".to_string());
Target {
llvm_target: "i686-pc-windows-msvc".to_string(),
target_endian: "little".to_string(),