https://llvm.org/bugs/show_bug.cgi?id=25473
Bug ID: 25473 Summary: Using /EHsc or /EHsc- results in a missing symbol Product: clang Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: -New Bugs Assignee: unassignedclangb...@nondot.org Reporter: ism...@i10z.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Created attachment 15257 --> https://llvm.org/bugs/attachment.cgi?id=15257&action=edit Testcase Using clang r252597 win64. Using the attached test program: λ clang-cl checksec.cpp λ Works fine, now lets see /EHsc: λ clang-cl /EHsc checksec.cpp checksec-649d19.obj : error LNK2019: unresolved external symbol "void __cdecl terminate(void)" (?terminate@@YAXXZ) referenced in function "int `public: __cdecl MappedImage::~MappedImage(void)'::`1'::dtor$10" (?dtor$10@?0???1MappedImage@@QEAA@XZ@4HA) checksec.exe : fatal error LNK1120: 1 unresolved externals clang-cl.exe: error: linker command failed with exit code 1120 (use -v to see invocation) Ok then use /EHsc- : λ clang-cl /EHsc- checksec.cpp checksec-280639.obj : error LNK2019: unresolved external symbol "void __cdecl terminate(void)" (?terminate@@YAXXZ) referenced in function "int `public: __cdecl MappedImage::~MappedImage(void)'::`1'::dtor$10" (?dtor$10@?0???1MappedImage@@QEAA@XZ@4HA) checksec.exe : fatal error LNK1120: 1 unresolved externals clang-cl.exe: error: linker command failed with exit code 1120 (use -v to see invocation) -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs