<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 --- - clang-cl: '@' args after /link should not be expanded to response files"
href="http://llvm.org/bugs/show_bug.cgi?id=20597">20597</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang-cl: '@' args after /link should not be expanded to response files
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rafaelauler@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>The "/base" flag of MSVC's linker.exe (see
<a href="http://msdn.microsoft.com/en-us/library/f7f5138s.aspx">http://msdn.microsoft.com/en-us/library/f7f5138s.aspx</a>) accepts two forms:
/base:{address[,size]}
or
/base:@filename,key
The latter construction is problematic for clang because of the '@' character.
In this case, '@' is not a response file, but a list of key-value pairs that
link.exe can read to establish the base address. However, if a user tries to
pass this argument to the linker via clang-cl, she would be forced to use:
clang-cl /link /base:@filename,key
In this case, clang commandline utilities will wrongly expand the '@' args to a
response file before the clang arg parser kicks in.
This bug could occur in theory, but I am not sure if it occurs in practice. I
am filing it here to keep track of it.</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>