summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/ReaderWriter/PECOFF/PECOFFLinkingContext.cpp6
-rw-r--r--lld/test/pecoff/safeseh.test7
2 files changed, 0 insertions, 13 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) {
diff --git a/lld/test/pecoff/safeseh.test b/lld/test/pecoff/safeseh.test
index 6fcbe2fcdfa..78b1b0b53ac 100644
--- a/lld/test/pecoff/safeseh.test
+++ b/lld/test/pecoff/safeseh.test
@@ -7,10 +7,3 @@
# RUN: FileCheck -check-prefix=INCOMPAT %s < %t1.err
INCOMPAT: /SAFESEH is specified, but {{.*}} is not compatible with SEH.
-
-# RUN: yaml2obj %p/Inputs/seh.obj.yaml > %t2.obj
-# RUN: not lld -flavor link /machine:x64 /safeseh:no /out:%t2.exe \
-# RUN: /subsystem:console -- %t2.obj 2> %t2.err
-# RUN: FileCheck -check-prefix=X64 %s < %t2.err
-
-X64: /SAFESEH:NO is only valid for x86.
OpenPOWER on IntegriCloud