[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/13621] dangling global hidden symbol in symtab
From: |
rth at gcc dot gnu.org |
Subject: |
[Bug ld/13621] dangling global hidden symbol in symtab |
Date: |
Fri, 27 Jan 2012 20:39:23 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13621
Richard Henderson <rth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu.org
--- Comment #3 from Richard Henderson <rth at gcc dot gnu.org> 2012-01-27
20:39:23 UTC ---
__TMC_END__ isn't placed in the .bss section. You'd have seen that
in the object file. Of course that doesn't happen because there is
a section attribute.
There is something odd happening though. The .tm_clone_table section
is zero sized (which makes sense for all programs that don't use TM).
The section is layed out in the map file:
.tm_clone_table
0x00000000006008a0 0x0
.tm_clone_table
0x00000000006008a0 0x0 z.o
but the section is not present in the output (presumably due to the
size being zero?). But the two symbols that were in the section get
arbitrarily moved to .data:
[24] .data PROGBITS 0000000000600898 00000898
0000000000000004 0000000000000000 WA 0 0 4
...
69: 00000000006008a0 0 OBJECT GLOBAL HIDDEN 24 __TMC_LIST__
70: 00000000006008a0 0 OBJECT GLOBAL HIDDEN 24 __TMC_END__
(I adjusted the test case so that the start symbol was also global,
so that I could see it in all the output files.)
My current guess is that there's some "unused section" pruning code
that's triggering to remove the section. My guess is that it should
avoid doing that if there are symbols present in the section.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
- [Bug ld/13621] New: dangling global hidden symbol in symtab, mjw at redhat dot com, 2012/01/24
- [Bug ld/13621] dangling global hidden symbol in symtab, hjl.tools at gmail dot com, 2012/01/25
- [Bug ld/13621] dangling global hidden symbol in symtab, mjw at redhat dot com, 2012/01/26
- [Bug ld/13621] dangling global hidden symbol in symtab,
rth at gcc dot gnu.org <=
- [Bug ld/13621] dangling global hidden symbol in symtab, rth at gcc dot gnu.org, 2012/01/27
- [Bug ld/13621] dangling global hidden symbol in symtab, rth at gcc dot gnu.org, 2012/01/27
- [Bug ld/13621] dangling global hidden symbol in symtab, ian at airs dot com, 2012/01/27
- [Bug ld/13621] dangling global hidden symbol in symtab, rth at gcc dot gnu.org, 2012/01/29