<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 - llc doesn't generate correct addresses in .debug_addr table for 64bit addresses"
href="https://bugs.llvm.org/show_bug.cgi?id=38635">38635</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>llc doesn't generate correct addresses in .debug_addr table for 64bit addresses
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</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>vleschuk@gmail.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=20742" name="attach_20742" title="source ll and produced asm">attachment 20742</a> <a href="attachment.cgi?id=20742&action=edit" title="source ll and produced asm">[details]</a></span>
source ll and produced asm
When trying to generate a 64bit object file from simple code:
void foo() {}
void bar() {}
An ll is attached. llc produces correct asm (looks good to me):
.section .debug_addr,"",@progbits
.quad .Lfunc_begin0
.quad .Lfunc_begin1
However if we try to generate an object file:
./bin/llc -split-dwarf-file=test.dwo -dwarf-version=4 test.ll -filetype=obj
-mtriple=x86_64-unknown-linux-gnu -o test.o
And check it with llvm-dwarfdump, we see correct addresses for functions in
debug_info section:
0x00000019: DW_TAG_subprogram
DW_AT_low_pc ( indexed (00000000) address =
0x0000000000000000)
0x00000024: DW_TAG_subprogram
DW_AT_low_pc ( indexed (00000001) address =
0x0000000000000010)
But zero addresses in .debug_addr section:
.debug_addr contents:
Addr Section: length = 0x00000000, version = 0x0004, addr_size = 0x08, seg_size
= 0x00
Addrs: [
0x0000000000000000
0x0000000000000000
]
Does anyone have an idea where to start looking at?
PS: It looks like llvm-dwarfdump does read 64bit contents of .debug_addr
section: see test/tools/llvm-dwarfdump/X86/debug_addr_64bit_address.s
PPS: there is no such problem with 32bit addresses.</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>