<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 - A problem about .debug_info"
href="https://bugs.llvm.org/show_bug.cgi?id=37891">37891</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>A problem about .debug_info
</td>
</tr>
<tr>
<th>Product</th>
<td>lld
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows XP
</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>ELF
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>qiuwei-qiuwei@163.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=20455" name="attach_20455" title="project and command line">attachment 20455</a> <a href="attachment.cgi?id=20455&action=edit" title="project and command line">[details]</a></span>
project and command line
Hi,
I have a problem about .debug_info section. I use '-gc-section' to remove
unused function sections, but the debug info of these sections will be reserved
in .debug_info. For example,
<1><264>: Abbrev Number: 5 (DW_TAG_subprogram)
<265> DW_AT_low_pc : 0x0
<269> DW_AT_high_pc : 0x150
<26d> DW_AT_frame_base : 1 byte block: 57 (DW_OP_reg7 (r7))
<26f> DW_AT_name : (indirect string, offset: 0x53): aa
<273> DW_AT_decl_file : 1
<274> DW_AT_decl_line : 5
<275> DW_AT_external : 1
function aa has be removed in elf, but its debue_info was still reserved. The
'DW_AT_high_pc' attribute is 0x150 in llvm lld, however it's 0x0 in gnu ld.</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>