[all-commits] [llvm/llvm-project] 70b287: [LLD] [MinGW] Implement the --no-seh flag
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Wed Jul 29 07:59:46 PDT 2020
Branch: refs/heads/release/11.x
Home: https://github.com/llvm/llvm-project
Commit: 70b2872f4810569173c7042c51333d83deb16d88
https://github.com/llvm/llvm-project/commit/70b2872f4810569173c7042c51333d83deb16d88
Author: Martin Storsjö <martin at martin.st>
Date: 2020-07-29 (Wed, 29 Jul 2020)
Changed paths:
M lld/COFF/Config.h
M lld/COFF/Driver.cpp
M lld/COFF/Options.td
M lld/COFF/Writer.cpp
M lld/MinGW/Driver.cpp
M lld/MinGW/Options.td
A lld/test/COFF/noseh.s
M lld/test/MinGW/driver.test
Log Message:
-----------
[LLD] [MinGW] Implement the --no-seh flag
Previously this flag was just ignored. If set, set the
IMAGE_DLL_CHARACTERISTICS_NO_SEH bit, regardless of the normal safeSEH
machinery.
In mingw configurations, the safeSEH bit might not be set in e.g. object
files built from handwritten assembly, making it impossible to use the
normal safeseh flag. As mingw setups don't generally use SEH on 32 bit
x86 at all, it should be fine to set that flag bit though - hook up
the existing GNU ld flag for controlling that.
Differential Revision: https://reviews.llvm.org/D84701
(cherry picked from commit 745eb02496b515cc8292dd7f9d7f0db43e162013)
More information about the All-commits
mailing list