<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - [llvm-mc] - llvm-mc does not handle .debug_types correctly"
href="https://bugs.llvm.org/show_bug.cgi?id=35718">35718</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[llvm-mc] - llvm-mc does not handle .debug_types correctly
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>MC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>grimar@accesssoftek.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19584" name="attach_19584" title="text file with source">attachment 19584</a> <a href="attachment.cgi?id=19584&action=edit" title="text file with source">[details]</a></span>
text file with source
Something wrong with how llvm-mc handles debug_types it seems.
Attached source file, compiled with
GNU assembler version 2.29.51 (x86_64-pc-linux-gnu)
using BFD version (GNU Binutils) 2.29.51.20171006
contains:
COMDAT group section [ 1] `.group' [aaa] contains 1 sections:
[Index] Name
[ 8] .aaa
COMDAT group section [ 2] `.group' [bbb] contains 1 sections:
[Index] Name
[ 9] .bbb
COMDAT group section [ 3] `.group' [ccc] contains 1 sections:
[Index] Name
[ 10] .ccc
COMDAT group section [ 4] `.group' [5657452045627120676] contains 2
sections:
[Index] Name
[ 11] .debug_types
[ 12] .rela.debug_types
llvm-mc (r321060) output for the same is:
COMDAT group section [ 3] `.group' [aaa] contains 1 sections:
[Index] Name
[ 4] .aaa
COMDAT group section [ 5] `.group' [bbb] contains 1 sections:
[Index] Name
[ 6] .bbb
COMDAT group section [ 7] `.group' [ccc] contains 2 sections:
[Index] Name
[ 8] .ccc
[ 9] .rela.ccc
Looks it treats .rela.debug_types as .rela.ccc
When I remove sections .aaa, .bbb, .ccc from code, then gas output is:
COMDAT group section [ 1] `.group' [5657452045627120676] contains 2
sections:
[Index] Name
[ 5] .debug_types
[ 6] .rela.debug_types
And llvm-mc emits no groups at all:
There are no section groups in this file.</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>