[LLVMbugs] [Bug 20583] New: msvc link.exe complains .pdata emission with function section specified is invalid

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 7 20:13:52 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20583

            Bug ID: 20583
           Summary: msvc link.exe complains .pdata emission with function
                    section specified is invalid
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Object
          Assignee: unassignedbugs at nondot.org
          Reporter: humeafo at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12864
  --> http://llvm.org/bugs/attachment.cgi?id=12864&action=edit
the llvm ir code to generate the problem

windows x64/PECoff target code emission with function section specified will
cause invalid .pdata data generated(as complained by link.exe).

my env is VS2013 command line prompt:

first generate .bc

\x64\vc12\bin\llvm-as b.ll -o b.bc

then try to generate code and then link with msvc link.exe

\x64\vc12\bin\clang.exe b.bc -o b.exe -v

with following errors:

b-007bef.o : fatal error LNK1223: invalid or corrupt file: file contains
invalid .pdata contributions

detailed info is as follows:

clang version 3.6.0 (trunk)
Target: x86_64-pc-windows-msvc
Thread model: posix
 "d:\\devlibs\\llvmpkg\\x64\\vc12\\bin\\clang.exe" -cc1 -triple
x86_64-pc-windows-msvc -emit-obj -mrelax-all -disable-free
-disable-llvm-verifier -main-file-name b.bc -mrelocation-model pic -pic-level 2
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu
x86-64 -v -dwarf-column-info -resource-dir
"d:\\devlibs\\llvmpkg\\x64\\vc12\\bin\\..\\lib\\clang\\3.6.0"
-fdebug-compilation-dir "D:\\mdev\\compiler\\scc\\sctpass\\build\\Debug"
-ferror-limit 19 -fmessage-length 0 -mstackrealign -fms-extensions
-fms-compatibility -fms-compatibility-version=17.00 -fdelayed-template-parsing
-fobjc-runtime=gcc -fdiagnostics-show-option -o
"C:\\Users\\hume\\AppData\\Local\\Temp\\b-007bef.o" -x ir b.bc
clang -cc1 version 3.6.0 based upon LLVM 3.6.0svn default target
x86_64-pc-windows-msvc
 "C:\\Program Files (x86)\\Microsoft Visual Studio
12.0\\VC\\BIN\\amd64\\link.exe" -out:b.exe -defaultlib:libcmt -nologo
"C:\\Users\\hume\\AppData\\Local\\Temp\\b-007bef.o"
clang.exe: error: linker command failed with exit code 1223 (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/20140808/ec5efdea/attachment.html>


More information about the llvm-bugs mailing list