<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 --- - lld -r sets sh_entsize to 0 for SHF_MERGE sections"
href="https://llvm.org/bugs/show_bug.cgi?id=26975">26975</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>lld -r sets sh_entsize to 0 for SHF_MERGE sections
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</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>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>emaste@freebsd.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>Created <span class=""><a href="attachment.cgi?id=16048" name="attach_16048" title="relocatable SHF_MERGE test case">attachment 16048</a> <a href="attachment.cgi?id=16048&action=edit" title="relocatable SHF_MERGE test case">[details]</a></span>
relocatable SHF_MERGE test case
The attached test case demonstrates the issue -- lld -r produces output with
sh_entsize 0 for input with a SHF_MERGE SHF_STRINGS section with sh_entsize 1.
Section {
Index: 1
Name: .rodata (1) <<<<
Type: SHT_PROGBITS (0x1)
Flags [ (0x32)
SHF_ALLOC (0x2)
SHF_MERGE (0x10)
SHF_STRINGS (0x20)
]
Address: 0x0
Offset: 0x34
Size: 4
Link: 0
Info: 0
AddressAlignment: 1
EntrySize: 0 <<<<
SectionData (
0000: 61626300 |abc.|
)
}</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>