<html>
<head>
<base href="https://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 --- - assembler warning "entity size for SHF_MERGE not specified""
href="https://llvm.org/bugs/show_bug.cgi?id=31828">31828</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>assembler warning "entity size for SHF_MERGE not specified"
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>3.9
</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>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>arnd@linaro.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>I found this while building the Linux kernel, in
drivers/soc/tegra/fuse/speedo-tegra124.c:
$ clang -Wall -O2 -no-integrated-as -fno-strict-overflow -c test.c
/tmp/test-d0fed2.s: Assembler messages:
/tmp/test-d0fed2.s:25: Warning: entity size for SHF_MERGE not specified
$ cat test.c
static int a[][1] __attribute__((__section__(".init.rodata"))) = {{}};
int b;
int fn1(void) {
for (;;)
if (a[b][0])
for (;;)
;
}
It appears to be related to a old bug that was marked fixed in 2010
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - size missing in mergeable section"
href="show_bug.cgi?id=4650">https://llvm.org/bugs/show_bug.cgi?id=4650</a></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>