<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - msvc link.exe complains .pdata emission with function section specified is invalid"
href="http://llvm.org/bugs/show_bug.cgi?id=20583">20583</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>msvc link.exe complains .pdata emission with function section specified is invalid
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>release blocker
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Object
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>humeafo@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=12864" name="attach_12864" title="the llvm ir code to generate the problem">attachment 12864</a> <a href="attachment.cgi?id=12864&action=edit" title="the llvm ir code to generate the problem">[details]</a></span>
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)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>