[llvm-bugs] [Bug 25473] New: Using /EHsc or /EHsc- results in a missing symbol

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 10 05:54:15 PST 2015


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: unassignedclangbugs at nondot.org
          Reporter: ismail at i10z.com
                CC: llvm-bugs at 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 at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151110/ef339788/attachment-0001.html>


More information about the llvm-bugs mailing list