[llvm-bugs] [Bug 37891] New: A problem about .debug_info
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 21 02:42:36 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37891
Bug ID: 37891
Summary: A problem about .debug_info
Product: lld
Version: unspecified
Hardware: All
OS: Windows XP
Status: NEW
Severity: enhancement
Priority: P
Component: ELF
Assignee: unassignedbugs at nondot.org
Reporter: qiuwei-qiuwei at 163.com
CC: llvm-bugs at lists.llvm.org
Created attachment 20455
--> https://bugs.llvm.org/attachment.cgi?id=20455&action=edit
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180621/94e27268/attachment.html>
More information about the llvm-bugs
mailing list