[Bug tree-optimization/27657] [4.2 regression] bogus undefined reference error to static var with -g and -O
amodra at bigpond dot net dot au
gcc-bugzilla@gcc.gnu.org
Mon May 29 03:07:00 GMT 2006
------- Comment #1 from amodra at bigpond dot net dot au 2006-05-29 03:07 -------
Confirmed. The reference is the relocation for DW_AT_const_value.
$ readelf -wi test.o
[snip]
<1><7a>: Abbrev Number: 8 (DW_TAG_variable)
DW_AT_name : (indirect string, offset: 0x0): gconf_g_utf8_skip
DW_AT_decl_file : 1
DW_AT_decl_line : 2
DW_AT_type : <89>
DW_AT_const_value : 0
[snip]
$ readelf -r test.o
Relocation section '.rela.debug_info' at offset 0x53c contains 8 entries:
[snip]
00000085 00000b01 R_PPC_ADDR32 00000000 utf8_skip_data + 0
--
amodra at bigpond dot net dot au changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at bigpond dot net
| |dot au
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-05-29 03:07:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27657
More information about the Gcc-bugs
mailing list