<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 3.6 -target i386-win32-pc can create invalid section attributes"
href="http://llvm.org/bugs/show_bug.cgi?id=22503">22503</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang 3.6 -target i386-win32-pc can create invalid section attributes
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.6
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>markus@oberhumer.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>This is a strange issue - using "-save-temps" seems to influence the ".rdata"
section attributes, causing warning LNK4078.
A possible regression against clang-3.4.2.
$ cat test.c
static const char aa[] = "aa";
const char *a(void) { return aa; }
const char *b(void) { return "bb"; }
$ clang-3.6.0rc2 -target i386-win32-pc -Wall -o test1.obj -c test.c
$ lib.exe /nologo /out:test1.lib test1.obj
$ clang-3.6.0rc2 -target i386-win32-pc -Wall -save-temps -o test2.obj -c test.c
$ lib.exe /nologo /out:test2.lib test2.obj
test2.obj : warning LNK4078: multiple '.rdata' sections found with different
attributes (C0101040)
$ cmp -l test1.obj test2.obj
220 100 300</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>