[llvm-bugs] [Bug 38635] New: llc doesn't generate correct addresses in .debug_addr table for 64bit addresses
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Aug 20 04:10:23 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38635
Bug ID: 38635
Summary: llc doesn't generate correct addresses in .debug_addr
table for 64bit addresses
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: vleschuk at gmail.com
CC: llvm-bugs at lists.llvm.org
Created attachment 20742
--> https://bugs.llvm.org/attachment.cgi?id=20742&action=edit
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,"", at 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.
--
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/20180820/8aba2502/attachment.html>
More information about the llvm-bugs
mailing list