Re: Need help on reducing linker issue
Hi Alan, this linker version is part of a 3rd party development suite, so for myself it's not easy to only update the linker. Can you remember if there was some kind of reproduction scenario at that time? greetings, Roger 2010/11/22 Alan Modra amo...@gmail.com On Mon, Nov 22, 2010 at 02:34:29PM +0100, Roger Jeurninck wrote: the version which we use is 2.17. That's over 4 years old! We are about to release 2.21. I recall fixing one uninitialised memory bug in that time. There were likely others too. -- Alan Modra Australia Development Lab, IBM ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/12256] New: internal error in do_layout
http://sourceware.org/bugzilla/show_bug.cgi?id=12256 Summary: internal error in do_layout Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: i...@airs.com ReportedBy: d.g.gorbac...@gmail.com Host: i686-pc-linux-gnu Target: i686-pc-linux-gnu Build: i686-pc-linux-gnu = foo.c = void foo(void) { } = = bar.c = void bar(void) { foo(); } = gcc -r -Wl,--gc-sections -Wl,--entry=bar foo.c bar.c /usr/local/bin/ld: error: cannot mix -r with --gc-sections or --icf /usr/local/bin/ld: internal error in do_layout, at ../../binutils-2.21.51/gold/object.cc:1440 ld.bfd -- works. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11065] [DllTool] DLL name from DEF file is ignored when using --output-exp option
http://sourceware.org/bugzilla/show_bug.cgi?id=11065 Dmitry Gorbachev d.g.gorbachev at gmail dot com changed: What|Removed |Added CC||dave.korn.cygwin at gmail ||dot com, ktietz at ||onevision 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12253] .eh_frame_hdr not properly sorted with mixed .eh_frame encodings
http://sourceware.org/bugzilla/show_bug.cgi?id=12253 Alan Modra amodra at gmail dot com changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #2 from Alan Modra amodra at gmail dot com 2010-11-23 13:34:02 UTC --- I took a look at this today. Besides the sorting problem, elf-eh-frame.c gets DW_EH_PE_datarel wrong. datarel is quite horrible, with behaviour varying from one architecture to another, unspecified on most. For x86, datarel offsets are supposed to be relative to .got.plt rather than .got. On ia64, datarel is relative to __gp. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12253] .eh_frame_hdr not properly sorted with mixed .eh_frame encodings
http://sourceware.org/bugzilla/show_bug.cgi?id=12253 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|NEW |ASSIGNED AssignedTo|unassigned at sources dot |amodra at gmail dot com |redhat.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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12253] .eh_frame_hdr not properly sorted with mixed .eh_frame encodings
http://sourceware.org/bugzilla/show_bug.cgi?id=12253 --- Comment #3 from Rainer Orth ro at CeBiTec dot Uni-Bielefeld.DE 2010-11-23 16:01:49 UTC --- --- Comment #2 from Alan Modra amodra at gmail dot com 2010-11-23 13:34:02 UTC --- I took a look at this today. Besides the sorting problem, elf-eh-frame.c gets DW_EH_PE_datarel wrong. datarel is quite horrible, with behaviour varying from one architecture to another, unspecified on most. For x86, datarel offsets are supposed to be relative to .got.plt rather than .got. On ia64, datarel is relative to __gp. Do you have an idea where this is specified? I've only found Table 11.6 in the LSB 4.0.0: http://refspecs.freestandards.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/dwarfext.html which says DW_EH_PE_datarel0x30Value is relative to the beginning of the .got or .eh_frame_hdr section. A spec which says `do A or B' with no indication when to do one or the other seems like a joke to me. I've looked into the architecture extensions for advise, but found nothing. I ran into this when trying to get the libgcc unwinder to work with dl_iterate_phdr on Solaris 11. While the function works, Sun ld interpreted DW_EH_PE_datarel relative to .eh_frame_hdr on i386 (apart from other problems). It would be good to have a spec to point to for this, rather than saying `GCC has been doing this' instead. Thanks. Rainer -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12258] New: --enable-gold --enable-ld=default doesn't work
http://sourceware.org/bugzilla/show_bug.cgi?id=12258 Summary: --enable-gold --enable-ld=default doesn't work Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: hjl.to...@gmail.com CC: d...@debian.org This checkin: http://sourceware.org/ml/binutils-cvs/2010-11/msg00144.html lead to cd build-i686-linux; \ /net/gnu-6/export/linux/src/binutils/binutils/configure \ \ --enable-gold --enable-ld=default --enable-plugins --enable-thre ads \ --prefix=/usr/local \ --with-local-prefix=/usr/local checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /bin/sed checking for gawk... gawk configure: error: either gold or ld can be the default ld make[1]: *** [config] Error 1 make[1]: Leaving directory `/export/build/linux/binutils-debug' -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12258] --enable-gold --enable-ld=default doesn't work
http://sourceware.org/bugzilla/show_bug.cgi?id=12258 --- Comment #1 from H.J. Lu hjl.tools at gmail dot com 2010-11-23 17:29:12 UTC --- Also --enable-gold=default --enable-ld=default is allowed. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12258] --enable-gold --enable-ld=default doesn't work
http://sourceware.org/bugzilla/show_bug.cgi?id=12258 --- Comment #2 from Matthias Klose doko at debian dot org 2010-11-23 17:46:02 UTC --- Created attachment 5135 -- http://sourceware.org/bugzilla/attachment.cgi?id=5135 fix typo sorry, a typo. please could you check in this patch as obvious? -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12259] New: ld.bfd is installed when gold isn't enabled
http://sourceware.org/bugzilla/show_bug.cgi?id=12259 Summary: ld.bfd is installed when gold isn't enabled Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: hjl.to...@gmail.com CC: d...@debian.org I got export/gnu/import/git/binutils/configure \ \ \ --prefix=/usr/local \ --with-local-prefix=/usr/local ... [...@gnu-6 binutils]$ make install ... [...@gnu-6 binutils]$ ls -l release/usr/local/bin/ld* -rwxr-xr-x 4 hjl hjl 4478672 Nov 23 10:11 release/usr/local/bin/ld -rwxr-xr-x 4 hjl hjl 4478672 Nov 23 10:11 release/usr/local/bin/ld.bfd [...@gnu-6 binutils]$ -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12259] ld.bfd is installed when gold isn't enabled
http://sourceware.org/bugzilla/show_bug.cgi?id=12259 --- Comment #2 from H.J. Lu hjl.tools at gmail dot com 2010-11-23 18:55:24 UTC --- (In reply to comment #1) yes, this is expected. Please see my comments in the email thread. Can you give me a pointer? -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12259] ld.bfd is installed when gold isn't enabled
http://sourceware.org/bugzilla/show_bug.cgi?id=12259 --- Comment #3 from Matthias Klose doko at debian dot org 2010-11-23 18:58:30 UTC --- http://gcc.gnu.org/ml/gcc-patches/2010-11/msg01109.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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12259] ld.bfd is installed when gold isn't enabled
http://sourceware.org/bugzilla/show_bug.cgi?id=12259 --- Comment #4 from H.J. Lu hjl.tools at gmail dot com 2010-11-23 19:32:25 UTC --- (In reply to comment #3) http://gcc.gnu.org/ml/gcc-patches/2010-11/msg01109.html But it doesn't mention that there will always be ld.bfd/ld.gold, which I think is a good idea. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12248] BFD linker plugin failed to resolve reference to archive
http://sourceware.org/bugzilla/show_bug.cgi?id=12248 Cary Coutant ccoutant at google dot com changed: What|Removed |Added CC||ccoutant at google 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12253] .eh_frame_hdr not properly sorted with mixed .eh_frame encodings
http://sourceware.org/bugzilla/show_bug.cgi?id=12253 --- Comment #4 from Alan Modra amodra at gmail dot com 2010-11-23 22:27:53 UTC --- Specs can't be trusted, sadly. Look for dbase in gcc/unwind-dw2-fde-glibc.c to see the initialisation for datarel base, used by x86 and frv. Look for ia64 in gcc/unwind-generic.h to see how ia64 sets up datarel base. A datarel value is relative to this base address. Except to muddy the waters further, DW_EH_PE_datarel when used in .eh_frame_hdr takes its base to be the address of the .eh_frame_hdr 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12248] BFD linker plugin failed to resolve reference to archive
http://sourceware.org/bugzilla/show_bug.cgi?id=12248 --- Comment #6 from H.J. Lu hjl.tools at gmail dot com 2010-11-23 23:40:57 UTC --- Created attachment 5137 -- http://sourceware.org/bugzilla/attachment.cgi?id=5137 A testcase to show linker order LTO plugin should preserve linker order. Otherwise, we will generate incorrect executables. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/12262] New: gold fails to link symbols explicitly defined in base-version
http://sourceware.org/bugzilla/show_bug.cgi?id=12262 Summary: gold fails to link symbols explicitly defined in base-version Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: i...@airs.com ReportedBy: flamee...@gmail.com The binutils manual for ld suggests using this syntax to define a symbol explicitly in base-version: __asm__(.symver original_foo,foo@); __asm__(.symver new_foo,foo@@VERS2); but code compiled with this syntax is rejected by gold as the version is undefined. I'm attaching a patch to solve the issue, which ensures that the base version is registered for the version. Thanks, Diego -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/12261] New: gold fails to link symbols explicitly defined in base-version
http://sourceware.org/bugzilla/show_bug.cgi?id=12261 Summary: gold fails to link symbols explicitly defined in base-version Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: i...@airs.com ReportedBy: flamee...@gmail.com The binutils manual for ld suggests using this syntax to define a symbol explicitly in base-version: __asm__(.symver original_foo,foo@); __asm__(.symver new_foo,foo@@VERS2); but code compiled with this syntax is rejected by gold as the version is undefined. I'm attaching a patch to solve the issue, which ensures that the base version is registered for the version. Thanks, Diego --- Comment #1 from Diego 'Flameeyes' Pettenò flameeyes at gmail dot com 2010-11-24 01:22:19 UTC --- *** Bug 12262 has been marked as a duplicate of this bug. *** -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/12262] gold fails to link symbols explicitly defined in base-version
http://sourceware.org/bugzilla/show_bug.cgi?id=12262 Diego 'Flameeyes' Pettenò flameeyes at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Comment #1 from Diego 'Flameeyes' Pettenò flameeyes at gmail dot com 2010-11-24 01:22:19 UTC --- Bad submit. *** This bug has been marked as a duplicate of bug 12261 *** -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/12261] gold fails to link symbols explicitly defined in base-version
http://sourceware.org/bugzilla/show_bug.cgi?id=12261 --- Comment #2 from Diego 'Flameeyes' Pettenò flameeyes at gmail dot com 2010-11-24 01:23:18 UTC --- Created attachment 5138 -- http://sourceware.org/bugzilla/attachment.cgi?id=5138 Patch to solve the problem above -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/12261] gold fails to link symbols explicitly defined in base-version
http://sourceware.org/bugzilla/show_bug.cgi?id=12261 --- Comment #3 from Ian Lance Taylor ian at airs dot com 2010-11-24 03:28:08 UTC --- Thanks for the patch. I've been troubled by this for a while, because defining a symbol in the base version doesn't reliably cause the glibc dynamic linker to select it when linking against a symbol with no version information. This thread has some more information: http://sourceforge.net/mailarchive/forum.php?thread_name=m3wrq48tso.fsf%40pepe.airs.comforum_name=fuse-devel I'm not sure what the right choice is here. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12259] ld.bfd is installed when gold isn't enabled
http://sourceware.org/bugzilla/show_bug.cgi?id=12259 --- Comment #5 from Matthias Klose doko at debian dot org 2010-11-24 04:00:15 UTC --- It does: I did choose to always install the bfd linker as ld.bfd and the gold linker as ld.gold, and pointing the link to one of the above. I think it's bad to have a name in an extended configuration, which doesn't show up in a basic configuration, when both configurations have the same functionality. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: Need help on reducing linker issue
On Tue, Nov 23, 2010 at 08:28:11AM +0100, Roger Jeurninck wrote: this linker version is part of a 3rd party development suite, so for myself it's not easy to only update the linker. In that case we can't help you much more.. Can you remember if there was some kind of reproduction scenario at that time? http://sourceware.org/bugzilla/show_bug.cgi?id=11887 Likely not related to your problem. -- Alan Modra Australia Development Lab, IBM ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12259] ld.bfd is installed when gold isn't enabled
http://sourceware.org/bugzilla/show_bug.cgi?id=12259 H.J. Lu hjl.tools at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Comment #6 from H.J. Lu hjl.tools at gmail dot com 2010-11-24 04:20:57 UTC --- OK. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12253] .eh_frame_hdr not properly sorted with mixed .eh_frame encodings
http://sourceware.org/bugzilla/show_bug.cgi?id=12253 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED --- Comment #5 from Alan Modra amodra at gmail dot com 2010-11-24 05:34:22 UTC --- http://sourceware.org/ml/binutils/2010-11/msg00431.html http://sourceware.org/ml/binutils-cvs/2010-11/msg00150.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 http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/12261] gold fails to link symbols explicitly defined in base-version
http://sourceware.org/bugzilla/show_bug.cgi?id=12261 --- Comment #4 from Diego 'Flameeyes' Pettenò flameeyes at gmail dot com 2010-11-24 06:46:57 UTC --- Whether there is or not a bug in the glibc loader, is not something that should matter here, IMHO. We have a documented use case that, ELF side, works exactly as intended, and a software that tries to use the documented syntax but fails. We also have Chrom(e|ium)OS going toward a hack (creating an UNVERSIONED version to attach to those symbols) just to be able to compile it. From my point of view, the right choice on the link editor side is to emit the correct ELF file (rather than stop on a corner case), and then report/track down the issue on ld.so side to ensure that it links as intended. This avoids having nasty hacks in place for fuse, and behaves as the documentation says it should. -- 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 http://lists.gnu.org/mailman/listinfo/bug-binutils