[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12496] Linker fails with "could not read symbols: Bad value" mes
From: |
d.g.gorbachev at gmail dot com |
Subject: |
[Bug ld/12496] Linker fails with "could not read symbols: Bad value" message |
Date: |
Wed, 23 Feb 2011 06:43:20 +0000 |
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 ld/12496] New: Linker fails with "could not read symbols: Bad value" message, d.g.gorbachev at gmail dot com, 2011/02/16
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, hjl.tools at gmail dot com, 2011/02/21
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, d.g.gorbachev at gmail dot com, 2011/02/22
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, hjl.tools at gmail dot com, 2011/02/22
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message,
d.g.gorbachev at gmail dot com <=
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, hjl.tools at gmail dot com, 2011/02/23
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, hjl.tools at gmail dot com, 2011/02/23
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, d.g.gorbachev at gmail dot com, 2011/02/24
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, hjl.tools at gmail dot com, 2011/02/24
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, hjl.tools at gmail dot com, 2011/02/24
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, d.g.gorbachev at gmail dot com, 2011/02/24
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, hjl.tools at gmail dot com, 2011/02/24
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, d.g.gorbachev at gmail dot com, 2011/02/24
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, hjl.tools at gmail dot com, 2011/02/24
- [Bug ld/12496] Linker fails with "could not read symbols: Bad value" message, d.g.gorbachev at gmail dot com, 2011/02/24