incorrect DW_AT_location for static #32574
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm using rust from the Fedora COPR:
Consider this program:
I compile with
-g
and then examine the DWARF usingreadelf
. I see:Now, this variable is not actually emitted. There's no ELF symbol for it. Given this, it seems strange to emit
DW_AT_linkage_name
andDW_AT_location
, especially considering that the latter is incorrect.The text was updated successfully, but these errors were encountered: