[Bug ld/13301] Wrong linker relaxation for TLS_LDM_CALL and TLS_GD_CALL on SPARC
http://sourceware.org/bugzilla/show_bug.cgi?id=13301 Eric Botcazou ebotcazou at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Version|2.23 (HEAD) |2.22 Resolution||FIXED --- Comment #3 from Eric Botcazou ebotcazou at gcc dot gnu.org 2011-10-19 06:58:46 UTC --- Fixed in 2.22 and later. -- 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 --- Comment #6 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot gnu.org 2011-10-19 07:17:27 UTC --- CVSROOT:/cvs/src Module name:src Changes by:amo...@sourceware.org2011-10-19 07:17:21 Modified files: bfd: ChangeLog elf32-arm.c elf32-bfin.c elf32-cris.c elf32-frv.c elf32-i386.c elf32-m32r.c elf32-m68k.c elf32-ppc.c elf32-s390.c elf32-sh.c elf32-spu.c elf32-tilepro.c elf32-xtensa.c elf64-alpha.c elf64-ppc.c elf64-s390.c elf64-sh64.c elf64-x86-64.c elflink.c elf-m10300.c elfxx-sparc.c elfxx-tilegx.c ld/testsuite : ChangeLog ld/testsuite/ld-elf: elf.exp ld/testsuite/ld-gc: gc.exp ld/testsuite/lib: ld-lib.exp Added files: ld/testsuite/ld-gc: libpersonality.s personality.d personality.s Log message: PR ld/13177 bfd/ * elflink.c (_bfd_elf_gc_mark_rsec): Set symbol mark. (elf_gc_sweep_symbol): Don't test plt/got refcounts, instead test mark. Hide undefweak too. Clear def_regular and ref_regular. * elf-m10300.c (mn10300_elf_relocate_section): Ignore unresolved reloc errors from garbage-collected code. * elf32-arm.c (elf32_arm_relocate_section): Likewise. * elf32-bfin.c (bfin_relocate_section): Likewise. (bfinfdpic_relocate_section): Likewise. * elf32-cris.c (cris_elf_relocate_section): Likewise. * elf32-frv.c (elf32_frv_relocate_section): Likewise. * elf32-i386.c (elf_i386_relocate_section): Likewise. * elf32-m32r.c (m32r_elf_relocate_section): Likewise. * elf32-m68k.c (elf_m68k_relocate_section): Likewise. * elf32-ppc.c (ppc_elf_relocate_section): Likewise. * elf32-s390.c (elf_s390_relocate_section): Likewise. * elf32-sh.c (sh_elf_relocate_section): Likewise. * elf32-spu.c (spu_elf_relocate_section): Likewise. * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. * elf64-alpha.c (elf64_alpha_relocate_section): Likewise. * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. * elf64-s390.c (elf_s390_relocate_section): Likewise. * elf64-sh64.c (sh_elf64_relocate_section): Likewise. * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. ld/testsuite/ * ld-elf/elf.exp: Move test for shared lib support.. * lib/ld-lib.exp (check_shared_lib_support): ..to here. Add m68hc1*, and s/ms1/mt/. (check_gc_sections_available): Match hppa*64 not hppa64. Comment. * ld-gc/libpersonality.s: New. * ld-gc/personality.s, * ld-gc/personality.d: New. * ld-gc/gc.exp: Run personality test. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=srcr1=1.5494r2=1.5495 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-arm.c.diff?cvsroot=srcr1=1.277r2=1.278 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-bfin.c.diff?cvsroot=srcr1=1.54r2=1.55 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-cris.c.diff?cvsroot=srcr1=1.116r2=1.117 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-frv.c.diff?cvsroot=srcr1=1.73r2=1.74 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-i386.c.diff?cvsroot=srcr1=1.260r2=1.261 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-m32r.c.diff?cvsroot=srcr1=1.102r2=1.103 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-m68k.c.diff?cvsroot=srcr1=1.126r2=1.127 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-ppc.c.diff?cvsroot=srcr1=1.302r2=1.303 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-s390.c.diff?cvsroot=srcr1=1.108r2=1.109 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-sh.c.diff?cvsroot=srcr1=1.172r2=1.173 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-spu.c.diff?cvsroot=srcr1=1.101r2=1.102 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-tilepro.c.diff?cvsroot=srcr1=1.3r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-xtensa.c.diff?cvsroot=srcr1=1.130r2=1.131 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-alpha.c.diff?cvsroot=srcr1=1.181r2=1.182 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-ppc.c.diff?cvsroot=srcr1=1.366r2=1.367 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-s390.c.diff?cvsroot=srcr1=1.108r2=1.109 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-sh64.c.diff?cvsroot=srcr1=1.87r2=1.88 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-x86-64.c.diff?cvsroot=srcr1=1.239r2=1.240 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elflink.c.diff?cvsroot=srcr1=1.427r2=1.428 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf-m10300.c.diff?cvsroot=srcr1=1.108r2=1.109 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elfxx-sparc.c.diff?cvsroot=srcr1=1.61r2=1.62
[Bug binutils/13311] internal error, aborting at bfd.c line 649 in _bfd_default_error_handler
http://sourceware.org/bugzilla/show_bug.cgi?id=13311 Octoploid cryptooctoploid at gmail dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #6 from Octoploid cryptooctoploid at gmail dot com 2011-10-19 07:20:52 UTC --- Fixed. Thanks Alan. -- 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 gold/13314] ICF clashes with section ordering
http://sourceware.org/bugzilla/show_bug.cgi?id=13314 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added AssignedTo|ian at airs dot com |tmsriram 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/13314] ICF clashes with section ordering
http://sourceware.org/bugzilla/show_bug.cgi?id=13314 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added CC||ian at airs 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 gold/13023] gold misinterprets dot assignments in sections
http://sourceware.org/bugzilla/show_bug.cgi?id=13023 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added CC||ian at airs 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 gold/13204] Internal error when --section-start is specified twice with the same address
http://sourceware.org/bugzilla/show_bug.cgi?id=13204 --- Comment #1 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot gnu.org 2011-10-19 15:06:03 UTC --- CVSROOT:/cvs/src Module name:src Changes by:i...@sourceware.org2011-10-19 15:05:58 Modified files: gold : ChangeLog layout.cc options.h Log message: PR gold/13204 * layout.cc (Layout::segment_precedes): Don't assert failure if a --section-start option was seen. * options.h (General_options::any_section_start): New function. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=srcr1=1.842r2=1.843 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/layout.cc.diff?cvsroot=srcr1=1.221r2=1.222 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/options.h.diff?cvsroot=srcr1=1.169r2=1.170 -- 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 gold/13204] Internal error when --section-start is specified twice with the same address
http://sourceware.org/bugzilla/show_bug.cgi?id=13204 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #2 from Ian Lance Taylor ian at airs dot com 2011-10-19 15:19:36 UTC --- Fixed in mainline. Thanks for reporting it. -- 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 gold/13163] internal error in set_segment_offsets, at ../../../binutils/gold/layout.cc:3050
http://sourceware.org/bugzilla/show_bug.cgi?id=13163 --- Comment #3 from cvs-commit at gcc dot gnu.org cvs-commit at gcc dot gnu.org 2011-10-19 15:51:04 UTC --- CVSROOT:/cvs/src Module name:src Changes by:i...@sourceware.org2011-10-19 15:51:00 Modified files: gold : ChangeLog script-sections.cc Log message: PR gold/13163 * script-sections.cc (Output_section_element_dot_assignment::needs_output_section): New function. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/ChangeLog.diff?cvsroot=srcr1=1.843r2=1.844 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gold/script-sections.cc.diff?cvsroot=srcr1=1.53r2=1.54 -- 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 gold/13163] internal error in set_segment_offsets, at ../../../binutils/gold/layout.cc:3050
http://sourceware.org/bugzilla/show_bug.cgi?id=13163 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Comment #4 from Ian Lance Taylor ian at airs dot com 2011-10-19 15:53:35 UTC --- Fixed in mainline. Sorry for the delay. -- 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 gold/12322] GOLD should group .text.unlikely/.text.startup/.text.exit/.text.hot sections together.
http://sourceware.org/bugzilla/show_bug.cgi?id=12322 Mike Hommey mh-sourceware at glandium dot org changed: What|Removed |Added CC||mh-sourceware at glandium ||dot org -- 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 gold/13321] New: Gold creates mixed Thumb/ARM files that objdump -d doesn't understand
http://sourceware.org/bugzilla/show_bug.cgi?id=13321 Bug #: 13321 Summary: Gold creates mixed Thumb/ARM files that objdump -d doesn't understand Product: binutils Version: 2.23 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: i...@airs.com ReportedBy: mh-sourcew...@glandium.org CC: ccout...@google.com Classification: Unclassified I haven't looked exactly why this happens but here is the problem: $ cat EOF test.c #include stdio.h void foo() { printf(foo\n); } EOF $ gcc -o test.so -shared test.c -mthumb -fPIC -Os -march=armv7-a $ objdump -d test.so test.so: file format elf32-littlearm Disassembly of section .plt: 01d0 .plt: 1d0:e52de004 .word0xe52de004 1d4:e59fe004 .word0xe59fe004 1d8:e08fe00e .word0xe08fe00e 1dc:e5bef008 .word0xe5bef008 1e0:10c8 .word0x10c8 1e4:e28fc600 .word0xe28fc600 1e8:e28cca01 .word0xe28cca01 1ec:e5bcf0c8 .word0xe5bcf0c8 Disassembly of section .text: 01f0 foo: 1f0:4801 ldrr0, [pc, #4]; (1f8 foo+0x8) 1f2:4478 addr0, pc 1f4:f000 b802 b.w1fc foo+0xc 1f8:0016 .word0x0016 1fc:46c04778 .word0x46c04778 200:e59fc000 .word0xe59fc000 204:e08cf00f .word0xe08cf00f 208:ffd8 .word0xffd8 With GNU ld: $ gcc -o test.so -shared test.c -mthumb -fPIC -Os -march=armv7-a $ objdump -d test.so test.so: file format elf32-littlearm Disassembly of section .plt: 0260 .plt: 260:e52de004 push{lr}; (str lr, [sp, #-4]!) 264:e59fe004 ldrlr, [pc, #4]; 270 foo-0x14 268:e08fe00e addlr, pc, lr 26c:e5bef008 ldrpc, [lr, #8]! 270:80b4 .word0x80b4 274:4778 bxpc 276:46c0 nop; (mov r8, r8) 278:e28fc600 addip, pc, #0 27c:e28cca08 addip, ip, #32768; 0x8000 280:e5bcf0b0 ldrpc, [ip, #176]!; 0xb0 Disassembly of section .text: 0284 foo: 284:4801 ldrr0, [pc, #4]; (28c foo+0x8) 286:4478 addr0, pc 288:f7ff bff4 b.w274 foo-0x10 28c:0006 .word0x0006 -- 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 gold/13322] New: ARM/Thumb interwork stubs should appear in some way in the symbol table
http://sourceware.org/bugzilla/show_bug.cgi?id=13322 Bug #: 13322 Summary: ARM/Thumb interwork stubs should appear in some way in the symbol table Product: binutils Version: 2.23 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gold AssignedTo: i...@airs.com ReportedBy: mh-sourcew...@glandium.org CC: ccout...@google.com Classification: Unclassified $ cat EOF test.c #include stdio.h void foo() { printf(foo\n); } EOF $ gcc -o test.so -shared test.c -mthumb -fPIC -Os -march=armv7-a $ objdump -d -j .text test.so test.so: file format elf32-littlearm Disassembly of section .text: 01f0 foo: 1f0:4801 ldrr0, [pc, #4]; (1f8 foo+0x8) 1f2:4478 addr0, pc 1f4:f000 b802 b.w1fc foo+0xc 1f8:0016 .word0x0016 1fc:46c04778 .word0x46c04778 200:e59fc000 .word0xe59fc000 204:e08cf00f .word0xe08cf00f 208:ffd8 .word0xffd8 $ objdump -t test.so | grep text 01f0 g F .text000c foo So everything from 1fc to 20c, which is the stub, is unaccounted for. Same applies for ARM-Thumb stubs (this one being the opposite direction) -- 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/13292] Binutils uses struct stat instead of #include sys/stat.h
http://sourceware.org/bugzilla/show_bug.cgi?id=13292 Alen Skondro askondro at gmail dot com changed: What|Removed |Added CC||askondro at gmail dot com --- Comment #1 from Alen Skondro askondro at gmail dot com 2011-10-19 17:44:21 UTC --- (In reply to comment #0) Created attachment 5984 [details] Fix mingw-w64 recently implemented support for large files using _FILE_OFFSET_BITS=64. Binutils uses struct stat instead of #include sys/stat.h, which makes it fail to compile with mingw-w64 trunk. The attached patch fixes the issue. I think you shouldn't edit bfd/bfd-in2.h since it is auto generated. The bfd-in.h is the file you want to patch, I guess. The patch doesn't seem to solve the problem for me. Do you have the issue bfd/archive.c? -- 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 gold/13320] Please support thumb entry points in PLT instead of using (more or less randomly located) stubs
http://sourceware.org/bugzilla/show_bug.cgi?id=13320 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added CC||ian at airs dot com AssignedTo|ian at airs dot com |dougkwan 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gold/13322] ARM/Thumb interwork stubs should appear in some way in the symbol table
http://sourceware.org/bugzilla/show_bug.cgi?id=13322 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added CC||ian at airs dot com AssignedTo|ian at airs dot com |dougkwan 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug gprof/13325] New: gprof doesn't work when there are histogram data before the first symbol
http://sourceware.org/bugzilla/show_bug.cgi?id=13325 Bug #: 13325 Summary: gprof doesn't work when there are histogram data before the first symbol Product: binutils Version: 2.23 (HEAD) Status: NEW Severity: normal Priority: P2 Component: gprof AssignedTo: unassig...@sourceware.org ReportedBy: car...@google.com Classification: Unclassified In function hist.c:hist_assign_samples_1, when credit histogram data to symbols it uses the loop for (i = 0, j = 1; i r-num_bins; ++i) { ... for (j = j - 1; j symtab.len; ++j) { sym_low_pc = symtab.base[j].hist.scaled_addr; sym_high_pc = symtab.base[j + 1].hist.scaled_addr; /* If high end of bin is below entry address, go for next bin. */ if (bin_high_pc sym_low_pc) break; ... } } Usually the last histogram is belong to symtab.base[j-1], and the current histogram may also belong to symtab.base[j-1], so the loop starts from (j-1). Suppose we have a histogram data that isn't belong to any known symbol, and its address is before the first symbol, when it reaches to the inner loop, j=1, after entering the inner loop, j = 0, then exit the inner loop. When it reaches the inner loop again, j = 0 - 1 = 4294967295, which is much larger than the symbol table length, so the following histogram data will never hit any symbols. So the inner loop should never modify j if the histogram doesn't hit any symbol. -- 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