[Bug ld/13621] dangling global hidden symbol in symtab

2022-07-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=13621

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |WONTFIX
 Status|REOPENED|RESOLVED

--- Comment #13 from Alan Modra  ---
I don't see any reason why a symbol can't be defined at the end of a section
(ie. section vma + section size), which is what happens now.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug ld/13621] dangling global hidden symbol in symtab

2013-07-14 Thread bugzilla at lazar dot co.nz
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

Lazar Sumar bugzilla at lazar dot co.nz changed:

   What|Removed |Added

 CC||bugzilla at lazar dot co.nz

-- 
You are receiving this mail because:
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-05-04 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

--- Comment #11 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-05-05 04:51:22 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:amo...@sourceware.org2012-05-05 04:51:16

Modified files:
bfd: ChangeLog linker.c 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-elf: warn2.d 
Removed files:
ld/testsuite/ld-elf: zerosize1.d zerosize1.s 

Log message:
PR ld/14052
PR ld/13621
bfd/
* linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
ld/testsuite/
* ld-elf/warn2.d: Revert 2012-02-13 change.
* ld-elf/zerosize1.d, ld-elf/zerosize1.s: Delete.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5669r2=1.5670
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/linker.c.diff?cvsroot=srcr1=1.94r2=1.95
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srcr1=1.1518r2=1.1519
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/warn2.d.diff?cvsroot=srcr1=1.7r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/zerosize1.d.diff?cvsroot=srcr1=1.2r2=NONE
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/zerosize1.s.diff?cvsroot=srcr1=1.1r2=NONE

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-05-04 Thread amodra at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

Alan Modra amodra at gmail dot com changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 CC||amodra at gmail dot com
 Resolution|FIXED   |

--- Comment #12 from Alan Modra amodra at gmail dot com 2012-05-05 04:54:14 
UTC ---
Reopening since I've just reverted the fix that was applied for this bug. 
Making symbols absolute just isn't a good idea.  See
http://sourceware.org/bugzilla/show_bug.cgi?id=14052

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-02-14 Thread mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

--- Comment #9 from Mark Wielaard mjw at redhat dot com 2012-02-14 15:09:43 
UTC ---
Thanks for pushing the fix so quickly.
I verified it fixes the eu-elflint issues.

Note that you forgot to add/commit the new test files:

* ld-elf/zerosize1.d, zerosize1.s: New test.

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-02-14 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

--- Comment #10 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-02-14 20:43:30 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:r...@sourceware.org2012-02-14 20:43:26

Modified files:
ld/testsuite   : ChangeLog 
Added files:
ld/testsuite/ld-elf: zerosize1.d zerosize1.s 

Log message:
PR ld/13621
* ld-elf/zerosize1.d, ld-elf/zerosize1.s: New test.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srcr1=1.1492r2=1.1493
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/zerosize1.d.diff?cvsroot=srcr1=NONEr2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/zerosize1.s.diff?cvsroot=srcr1=NONEr2=1.1

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-02-13 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

--- Comment #7 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot 
gnu.org 2012-02-13 18:08:56 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:r...@sourceware.org2012-02-13 18:08:51

Modified files:
bfd: ChangeLog linker.c 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-elf: warn2.d 

Log message:
PR ld/13621

bfd/
* linker.c (fix_syms): Force symbols outside any section into
bfd_abs_section_ptr.
ld/testsuite/
* ld-elf/warn2.d: Expect ABS section for Foo.
* ld-elf/zerosize1.d, zerosize1.s: New test.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5607r2=1.5608
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/linker.c.diff?cvsroot=srcr1=1.91r2=1.92
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=srcr1=1.1490r2=1.1491
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/warn2.d.diff?cvsroot=srcr1=1.6r2=1.7

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-02-13 Thread rth at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

Richard Henderson rth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED

--- Comment #8 from Richard Henderson rth at gcc dot gnu.org 2012-02-13 
18:12:27 UTC ---
Fixed.

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-01-29 Thread rth at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

Richard Henderson rth at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
 AssignedTo|unassigned at sourceware|rth at gcc dot gnu.org
   |dot org |

--- Comment #6 from Richard Henderson rth at gcc dot gnu.org 2012-01-30 
00:58:32 UTC ---
Proposed patch:

http://sourceware.org/ml/binutils/2012-01/msg00269.html

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-01-27 Thread rth at gcc dot gnu.org
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
0x006008a00x0
 .tm_clone_table
0x006008a00x0 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 00600898  0898
   0004    WA   0 0 4
...
69: 006008a0 0 OBJECT  GLOBAL HIDDEN24 __TMC_LIST__
70: 006008a0 0 OBJECT  GLOBAL HIDDEN24 __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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-01-27 Thread rth at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

Richard Henderson rth at gcc dot gnu.org changed:

   What|Removed |Added

 CC|rth at redhat dot com   |

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-01-27 Thread rth at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

--- Comment #4 from Richard Henderson rth at gcc dot gnu.org 2012-01-27 
21:07:21 UTC ---
FYI, gold gets this correct:

  [25] .tm_clone_table   PROGBITS 004018c8  08c8
       WA   0 0 8
...
18: 004018c8 0 OBJECT  LOCAL  HIDDEN25 __TMC_LIST__
19: 004018c8 0 OBJECT  LOCAL  HIDDEN25 __TMC_END__

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-01-26 Thread mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

--- Comment #2 from Mark Wielaard mjw at redhat dot com 2012-01-26 10:19:53 
UTC ---
(In reply to comment #1)
 Since __TMC_END__ is 0, it is placed in .bss section.

O that is interesting. In both my examples the .bss section is right after the
section that the .symtab st_shndx field claims the symbol is in. And the
address does fall in that section. So are we just seeing some off-by-one issue?

Although I would not have expected that because the variables are marked with
__attribute__((used, section(.tm_clone_table)), wouldn't that force them in
the .tm_clone_table sections? (Which seems to have been purged after the link.)

-- 
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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/13621] dangling global hidden symbol in symtab

2012-01-25 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13621

H.J. Lu hjl.tools at gmail dot com changed:

   What|Removed |Added

 CC||hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2012-01-25 22:11:15 
UTC ---
Since __TMC_END__ is 0, it is placed in .bss 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-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils