[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section |
Date: |
Wed, 17 Mar 2021 13:31:47 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27590
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> ---
I think this is a GCC bug:
[hjl@gnu-cfl-2 pr27590]$ cat bad.s
.section .gnu.debuglto_.debug_macro,"e",@progbits
.Ldebug_macro0:
.long .Ldebug_macro2
.section .gnu.debuglto_.debug_macro,"eG",@progbits,wm4,comdat
.Ldebug_macro2:
.value 0x4
[hjl@gnu-cfl-2 pr27590]$ gcc -c bad.s
[hjl@gnu-cfl-2 pr27590]$ ld -r bad.o bad.o
`.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro'
of bad.o: defined in discarded section `.gnu.debuglto_.debug_macro[wm4]' of
bad.o
[hjl@gnu-cfl-2 pr27590]$ ld.gold -r bad.o bad.o
[hjl@gnu-cfl-2 pr27590]$ readelf -r a.out
Relocation section '.rela.gnu.debuglto_.debug_macro' at offset 0x78 contains 1
entry:
Offset Info Type Sym. Value Sym. Name +
Addend
000000000000 00020000000a R_X86_64_32 0000000000000000
.gnu.debuglto_.de[...] + 0
[hjl@gnu-cfl-2 pr27590]$ readelf -x .gnu.debuglto_.debug_macro a.out
Hex dump of section '.gnu.debuglto_.debug_macro':
NOTE: This section has relocations against it, but these have NOT been applied
to this dump.
0x00000000 00000000 00000000 ........
Hex dump of section '.gnu.debuglto_.debug_macro':
0x00000000 0400 ..
[hjl@gnu-cfl-2 pr27590]$
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/27590] New: `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, mliska at suse dot cz, 2021/03/16
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, mliska at suse dot cz, 2021/03/16
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, mliska at suse dot cz, 2021/03/16
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, mliska at suse dot cz, 2021/03/17
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, hjl.tools at gmail dot com, 2021/03/17
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, hjl.tools at gmail dot com, 2021/03/17
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section,
hjl.tools at gmail dot com <=
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, hjl.tools at gmail dot com, 2021/03/17
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, hjl.tools at gmail dot com, 2021/03/17
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, hjl.tools at gmail dot com, 2021/03/17
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, hjl.tools at gmail dot com, 2021/03/18
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, cvs-commit at gcc dot gnu.org, 2021/03/18
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, mliska at suse dot cz, 2021/03/19
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, cvs-commit at gcc dot gnu.org, 2021/03/19
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, hjl.tools at gmail dot com, 2021/03/19
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, cvs-commit at gcc dot gnu.org, 2021/03/19
- [Bug ld/27590] `.gnu.debuglto_.debug_macro' referenced in section `.gnu.debuglto_.debug_macro' of X defined in discarded section, cvs-commit at gcc dot gnu.org, 2021/03/19