summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/PECOFF
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-09-18 21:18:05 +0000
committerRui Ueyama <ruiu@google.com>2014-09-18 21:18:05 +0000
commit6bf091c656f319e36721364fe50c456efca36df6 (patch)
treeac6453487570864883b06babb0884f99bd128ae7 /lld/lib/ReaderWriter/PECOFF
parent17799fedb7562445f377619d4e09f20eef630d1f (diff)
downloadbcm5719-llvm-6bf091c656f319e36721364fe50c456efca36df6.tar.gz
bcm5719-llvm-6bf091c656f319e36721364fe50c456efca36df6.zip
[PECOFF] /safeseh:no on x64 is not an error
I made LLD to report an error if /safeseh:no option is given on x64, but it turned out MSVC link.exe doesn't report error on it. Removing the check. llvm-svn: 218077
Diffstat (limited to 'lld/lib/ReaderWriter/PECOFF')
-rw-r--r--lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp b/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
index a316e3c8845..48ca509db76 100644
--- a/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp
@@ -74,12 +74,6 @@ bool PECOFFLinkingContext::validateImpl(raw_ostream &diagnostics) {
return false;
}
- // /safeseh is only valid for x86.
- if (getMachineType() != llvm::COFF::IMAGE_FILE_MACHINE_I386 && noSEH()) {
- diagnostics << "/SAFESEH:NO is only valid for x86.\n";
- return false;
- }
-
// Architectures other than x86/x64 is not supported yet.
if (_machineType != llvm::COFF::IMAGE_FILE_MACHINE_I386 &&
_machineType != llvm::COFF::IMAGE_FILE_MACHINE_AMD64) {
OpenPOWER on IntegriCloud