[Bug ld/13697] [avr ] Wrong symbol values with --gc-sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13697 Matthieu Lemerre matthieu.lemerre at cea dot fr changed: What|Removed |Added CC||matthieu.lemerre at cea dot ||fr -- 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/13720] New: Ld 2.22 computes wrong symbol values
http://sourceware.org/bugzilla/show_bug.cgi?id=13720 Bug #: 13720 Summary: Ld 2.22 computes wrong symbol values Product: binutils Version: 2.22 Status: NEW Severity: critical Priority: P2 Component: ld AssignedTo: unassig...@sourceware.org ReportedBy: matthieu.leme...@cea.fr Classification: Unclassified Hello, ld version 2.22 gives wrong symbol values for some symbols. To be precise, it seems to compute the right value for the symbol, but uses a bad value when the symbol is used. Here are some relevant parts of the map file: # Here, the value for iSegCode0 is correctly computed 0x0008iSegCode0 = (ABSOLUTE (.) - ABSOLUTE (tabGDT)) # Later, the value is not used correctly 0x001170020x2 SHORT 0x113008 iSegCode0 # With ld version 2.20, the correct value is used: 0x001170020x2 SHORT 0x8 iSegCode0 For another symbol, I have: 0x0020offset_master_PIC = ((ABSOLUTE (.) - ABSOLUTE (tabIDT)) 0x3) And if I link an assembly file that uses this symbol (it does a movb $offset_master_PIC, %al), I get this error: (.text+0x7): relocation truncated to fit: R_386_8 against symbol If I change my assembly file to do (movw $offset_master_PIC, %eax) instead and use objdump, I can see that offset_master_PIC has a completely wrong value (which explains the truncation error). Somehow it seems that the value of the symbol gets overwritten. We tried using valgrind to see if it was a simple memory error without success. We can reproduce the error in the complete projet; when trying to create a simpler case, we did not manage to reproduce the error. We tried to simplify our linker script, but with simple modifications (e.g. changing the order of sections) the error did not occur. The error already appeared with ld version 21.51. -- 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 binutils/13682] delay-load doesn't work for target x86_64-w64-mingw32
http://sourceware.org/bugzilla/show_bug.cgi?id=13682 --- Comment #1 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot gnu.org 2012-02-21 16:10:22 UTC --- CVSROOT:/cvs/src Module name:src Changes by:kti...@sourceware.org2012-02-21 16:10:13 Modified files: binutils : ChangeLog NEWS dlltool.c Log message: PR binutils/13682 * NEWS: Mention new feature. * dlltool.c (i386_x64_dljtab): New stub-code for x64 delayed-load feature. (i386_x64_trampoline): New trampoline-code for x64 delayed-load feature. (make_one_lib_file): Add support for x64 delayed-load feature. (make_delay_head): Likewis Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=srcr1=1.1881r2=1.1882 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/NEWS.diff?cvsroot=srcr1=1.106r2=1.107 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/dlltool.c.diff?cvsroot=srcr1=1.104r2=1.105 -- 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 binutils/13682] delay-load doesn't work for target x86_64-w64-mingw32
http://sourceware.org/bugzilla/show_bug.cgi?id=13682 Kai Tietz ktietz at redhat dot com changed: What|Removed |Added Status|NEW |RESOLVED CC||ktietz at redhat dot com Resolution||FIXED --- Comment #2 from Kai Tietz ktietz at redhat dot com 2012-02-21 16:12:37 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/13720] Ld 2.22 computes wrong symbol values
http://sourceware.org/bugzilla/show_bug.cgi?id=13720 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|NEW |WAITING CC||amodra at gmail dot com --- Comment #1 from Alan Modra amodra at gmail dot com 2012-02-21 22:33:38 UTC --- iSegCode0 = (ABSOLUTE (.) - ABSOLUTE (tabGDT)) offset_master_PIC = ((ABSOLUTE (.) - ABSOLUTE (tabIDT)) 0x3) Did the above expressions occur inside output section statements in your linker script? If so, your symbols iSegCode0 and offset_master_PIC will be section relative since the right hand side of these expressions evaluate to a number. (See ld.info node Expression Section.) When you use these symbols in relocations, they will have the output section address added to their (offset) value. -- 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/12742] ld error unrecognized option '-plugin' on mingw and how to build with plugins enabled on mingw
http://sourceware.org/bugzilla/show_bug.cgi?id=12742 --- Comment #5 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-02-21 22:46:45 UTC --- Thanks for the patch, I can test after GCC's http://gcc.gnu.org/PR50616 is 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/12742] ld error unrecognized option '-plugin' on mingw and how to build with plugins enabled on mingw
http://sourceware.org/bugzilla/show_bug.cgi?id=12742 --- Comment #6 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-02-21 22:48:36 UTC --- Something strange happened to the link. Again GCC's PR: http://gcc.gnu.org/PR50616 -- 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/12742] ld error unrecognized option '-plugin' on mingw and how to build with plugins enabled on mingw
http://sourceware.org/bugzilla/show_bug.cgi?id=12742 --- Comment #7 from Georg-Johann Lay gjl at gcc dot gnu.org 2012-02-21 22:49:50 UTC --- Ok, there is some PR magic. GCC PR number is 50616. -- 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/13720] Ld 2.22 computes wrong symbol values
http://sourceware.org/bugzilla/show_bug.cgi?id=13720 Alan Modra amodra at gmail dot com changed: What|Removed |Added Severity|critical|normal --- Comment #2 from Alan Modra amodra at gmail dot com 2012-02-22 02:09:37 UTC --- BTW, ld script expression rules changed between 2.20 and 2.21 so this would explain your problem completely. The old rules were so inconsistent that it was almost impossible to describe how ld evaluated script expressions. -- 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/13683] usage tracking by --gc-sections ignores a --defsym mapping
http://sourceware.org/bugzilla/show_bug.cgi?id=13683 --- Comment #10 from Alan Modra amodra at gmail dot com 2012-02-22 02:32:37 UTC --- Hmm, running lang_do_assignments before lang_gc_sections does change a few things in the symbol table, leading to some cris-elf testsuite failures. What's happening is that elf_gc_sweep now sees all the link script defined symbols, so they become subject to garbage collecting (well, forcing local). For the first test that fails, the expected symbol table is SYMBOL TABLE: 00080074 ld .text .text 00082078 ld .got .got 00082078 l O .got _GLOBAL_OFFSET_TABLE_ 00080074 g .text _start 00082084 g *ABS* __bss_start 00082084 g *ABS* _edata 000820a0 g *ABS* _end but we now get SYMBOL TABLE: 00080074 ld .text .text 00082078 ld .got .got 00082084 l *ABS* __bss_start 00082084 l *ABS* _edata 00082078 l O .got _GLOBAL_OFFSET_TABLE_ 000820a0 l *ABS* _end 00080074 g .text _start Note how __bss_start, _edata, _end are now local since no dynamic objects referred to them. I don't think that is a great concern, but of course means tweaking the cris testsuite when/if this patch goes in. -- 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/13177] garbage collector retains zombie references to external libraries
http://sourceware.org/bugzilla/show_bug.cgi?id=13177 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|REOPENED|RESOLVED CC||amodra at gmail dot com Resolution||FIXED --- Comment #7 from Alan Modra amodra at gmail dot com 2012-02-22 03:35:16 UTC --- Fixed mainline -- 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/13232] Regression: --gc-sections: local symbol `_dl_argv@@GLIBC_PRIVATE' in ld.so is referenced by DSO
http://sourceware.org/bugzilla/show_bug.cgi?id=13232 Bug 13232 depends on bug 13177, which changed state. Bug 13177 Summary: garbage collector retains zombie references to external libraries http://sourceware.org/bugzilla/show_bug.cgi?id=13177 What|Old Value |New Value Status|REOPENED|RESOLVED Resolution||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/13099] Incorrect check for .gnu.linkonce section
http://sourceware.org/bugzilla/show_bug.cgi?id=13099 Alan Modra amodra at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Comment #4 from Alan Modra amodra at gmail dot com 2012-02-22 04:02:23 UTC --- http://sourceware.org/ml/binutils/2011-08/msg00135.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