http://sourceware.org/bugzilla/show_bug.cgi?id=12496
--- Comment #4 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com>
2011-02-23 06:43:06 UTC ---
I can reproduce it with recent lto-mixed LD (and GCC 4.5/4.6; for 4.5, add
-fuse-linker-plugin to CFLAGS).
I see elf_link_add_archive_symbols() is called twice for libdiv.a:
#0 elf_link_add_archive_symbols (abfd=0x81914a8, info=0x8178ce0)
at ../../binutils-hjl/bfd/elflink.c:5074
#1 0x080bc6b6 in bfd_elf_link_add_symbols (abfd=0x81914a8, info=0x8178ce0)
at ../../binutils-hjl/bfd/elflink.c:5135
#2 0x08055d12 in load_symbols (entry=0x8184130, place=0xbfffedf8)
at ../../binutils-hjl/ld/ldlang.c:2827
#3 0x080566ff in open_input_bfds (s=0x8184130, force=1)
at ../../binutils-hjl/ld/ldlang.c:3258
#4 0x08056651 in open_input_bfds (s=0x81840fc, force=0)
at ../../binutils-hjl/ld/ldlang.c:3228
#5 0x0805b551 in lang_process () at ../../binutils-hjl/ld/ldlang.c:6534
#6 0x080609ae in main (argc=31, argv=0xbfffef94)
at ../../binutils-hjl/ld/ldmain.c:437
and second time:
#0 elf_link_add_archive_symbols (abfd=0x81914a8, info=0x8178ce0)
at ../../binutils-hjl/bfd/elflink.c:5067
#1 0x080bc6b6 in bfd_elf_link_add_symbols (abfd=0x81914a8, info=0x8178ce0)
at ../../binutils-hjl/bfd/elflink.c:5135
#2 0x08055d12 in load_symbols (entry=0x8184130, place=0xbfffedf8)
at ../../binutils-hjl/ld/ldlang.c:2827
#3 0x080566ff in open_input_bfds (s=0x8184130, force=1)
at ../../binutils-hjl/ld/ldlang.c:3258
#4 0x08056651 in open_input_bfds (s=0x81840fc, force=0)
at ../../binutils-hjl/ld/ldlang.c:3228
#5 0x0805b551 in lang_process ()
at ../../binutils-hjl/ld/ldlang.c:6534
#6 0x080609ae in main (argc=31, argv=0xbfffef94)
at ../../binutils-hjl/ld/ldmain.c:437
This is suspicious:
ldlang.c:3244
/* If we are being called from within a group, and this
is an archive which has already been searched, then
force it to be researched unless the whole archive
has been loaded already. */
elflink.c:5064
/* Doublecheck that we have not included this object
already--it should be impossible, but there may be
something wrong with the archive. */
--
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
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils