[Bug ld/12727] ld ppc64 bug with dot symbols
http://sourceware.org/bugzilla/show_bug.cgi?id=12727 Alan Modra changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED --- Comment #4 from Alan Modra 2011-05-04 00:56:05 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/12727] ld ppc64 bug with dot symbols
http://sourceware.org/bugzilla/show_bug.cgi?id=12727 --- Comment #3 from cvs-commit at gcc dot gnu.org 2011-05-04 00:34:15 UTC --- CVSROOT:/cvs/src Module name:src Branch: binutils-2_21-branch Changes by:amo...@sourceware.org2011-05-04 00:34:13 Modified files: bfd: ChangeLog elf64-ppc.c Log message: PR ld/12727 * elf64-ppc.c (ppc_build_one_stub ): Clear was_undefined on dot-symbols. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&only_with_tag=binutils-2_21-branch&r1=1.5180.2.27&r2=1.5180.2.28 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-ppc.c.diff?cvsroot=src&only_with_tag=binutils-2_21-branch&r1=1.339.2.8&r2=1.339.2.9 -- 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/12727] ld ppc64 bug with dot symbols
http://sourceware.org/bugzilla/show_bug.cgi?id=12727 --- Comment #2 from cvs-commit at gcc dot gnu.org 2011-05-04 00:31:46 UTC --- CVSROOT:/cvs/src Module name:src Changes by:amo...@sourceware.org2011-05-04 00:31:41 Modified files: bfd: ChangeLog elf64-ppc.c Log message: PR ld/12727 * elf64-ppc.c (ppc_build_one_stub ): Clear was_undefined on dot-symbols. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5326&r2=1.5327 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-ppc.c.diff?cvsroot=src&r1=1.348&r2=1.349 -- 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/12726] cannot move location counter backwards, assignment related regression
http://sourceware.org/bugzilla/show_bug.cgi?id=12726 Alan Modra changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Summary|cannot move location|cannot move location |counter backwards, |counter backwards, |alignment related |assignment related |regression on 2.21 branch |regression --- Comment #6 from Alan Modra 2011-05-03 15:18:26 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/12726] cannot move location counter backwards, alignment related regression on 2.21 branch
http://sourceware.org/bugzilla/show_bug.cgi?id=12726 --- Comment #5 from cvs-commit at gcc dot gnu.org 2011-05-03 15:16:51 UTC --- CVSROOT:/cvs/src Module name:src Branch: binutils-2_21-branch Changes by:amo...@sourceware.org2011-05-03 15:16:40 Modified files: ld : ChangeLog ldexp.c ldexp.h ldlang.c ldlang.h pe-dll.c Log message: PR ld/12726 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum. * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't assign to dot when lang_assigning_phase_enum. * ldlang.h (lang_do_assignments): Update prototype. * ldlang.c (lang_do_assignments): Add phase parameter. Update all callers. * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update lang_do_assignments calls. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&only_with_tag=binutils-2_21-branch&r1=1..2.20&r2=1..2.21 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldexp.c.diff?cvsroot=src&only_with_tag=binutils-2_21-branch&r1=1.87.2.1&r2=1.87.2.2 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldexp.h.diff?cvsroot=src&only_with_tag=binutils-2_21-branch&r1=1.23.2.1&r2=1.23.2.2 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.c.diff?cvsroot=src&only_with_tag=binutils-2_21-branch&r1=1.347.2.3&r2=1.347.2.4 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.h.diff?cvsroot=src&only_with_tag=binutils-2_21-branch&r1=1.91.2.2&r2=1.91.2.3 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/pe-dll.c.diff?cvsroot=src&only_with_tag=binutils-2_21-branch&r1=1.133&r2=1.133.2.1 -- 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/12727] ld ppc64 bug with dot symbols
http://sourceware.org/bugzilla/show_bug.cgi?id=12727 Alan Modra 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12726] cannot move location counter backwards, alignment related regression on 2.21 branch
http://sourceware.org/bugzilla/show_bug.cgi?id=12726 --- Comment #4 from cvs-commit at gcc dot gnu.org 2011-05-03 14:56:18 UTC --- CVSROOT:/cvs/src Module name:src Changes by:amo...@sourceware.org2011-05-03 14:56:14 Modified files: ld : ChangeLog ldexp.c ldexp.h ldlang.c ldlang.h pe-dll.c Log message: PR ld/12726 * ldexp.h (lang_phase_type): Add lang_assigning_phase_enum. * ldexp.c (exp_fold_tree_1): Correct assign to dot comment. Don't assign to dot when lang_assigning_phase_enum. * ldlang.h (lang_do_assignments): Update prototype. * ldlang.c (lang_do_assignments): Add phase parameter. Update all callers. * pe-dll.c (pe_dll_fill_sections, pe_exe_fill_sections): Update lang_do_assignments calls. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2324&r2=1.2325 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldexp.c.diff?cvsroot=src&r1=1.93&r2=1.94 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldexp.h.diff?cvsroot=src&r1=1.28&r2=1.29 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.c.diff?cvsroot=src&r1=1.366&r2=1.367 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/ldlang.h.diff?cvsroot=src&r1=1.96&r2=1.97 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/pe-dll.c.diff?cvsroot=src&r1=1.136&r2=1.137 -- 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/12726] cannot move location counter backwards, alignment related regression on 2.21 branch
http://sourceware.org/bugzilla/show_bug.cgi?id=12726 Alan Modra changed: What|Removed |Added Status|NEW |ASSIGNED -- 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/12726] cannot move location counter backwards, alignment related regression on 2.21 branch
http://sourceware.org/bugzilla/show_bug.cgi?id=12726 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com AssignedTo|unassigned at sources dot |amodra at gmail dot com |redhat.com | --- Comment #3 from Alan Modra 2011-05-03 13:24:52 UTC --- Mine. Looks to be caused by the fix for PR12380. That delayed setting expld.phase = lang_final_phase_enum until just before the final lang_do_assignments, breaking the assignments done in lang_relax_sections. -- 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/12727] ld ppc64 bug with dot symbols
http://sourceware.org/bugzilla/show_bug.cgi?id=12727 Jakub Jelinek changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #1 from Jakub Jelinek 2011-05-03 11:41:55 UTC --- In the original the dot symbols compiled object was in an *.a library and was dragged in by some other objects, again if -ldl preceeded it on the command line, link would fail. -- 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/12727] New: ld ppc64 bug with dot symbols
http://sourceware.org/bugzilla/show_bug.cgi?id=12727 Summary: ld ppc64 bug with dot symbols Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: ja...@redhat.com cat > test.c <<\EOF extern char *dlerror (void); volatile int i; void _start (void) { if (dlerror ()) i++; } EOF gcc -c -m64 test.c -o test.o ld -o test -L . -ldl test.o -lc ./ld64.so.1 ld -o test -L . -ldl test.o -ldl -lc ./ld64.so.1 ld -o test -L . test.o -ldl -lc ./ld64.so.1 gcc -c -m64 -mcall=aixdesc -o test.o ld -o test -L . -ldl test.o -lc ./ld64.so.1 ld -o test -L . -ldl test.o -ldl -lc ./ld64.so.1 ld -o test -L . test.o -ldl -lc ./ld64.so.1 (this assumes libc.so, libdl.so and ld64.so.1 are in current working directory, and have been built with gcc that defaults to the new linux ABI (i.e. not -mcall=aixdesc) and thus doesn't have .dlerror etc. symbols in it). When test.o is built without dot symbols, all 3 ld commands succeed just fine, when it is built with dot symbols and libdl.so.2 is not, only the command line with -ldl solely after test.o succeeds. Verified with today's CVS HEAD with a cross compiler, cross assembler and cross linker, and is reported to be also present on RHEL6, which has ld based on hjl's 2.20.51.0.2. It is reported to succeed on RHEL5, which is based on 2.17.50.0.6. -- 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/12726] cannot move location counter backwards, alignment related regression on 2.21 branch
http://sourceware.org/bugzilla/show_bug.cgi?id=12726 --- Comment #2 from Richard Guenther 2011-05-03 11:23:27 UTC --- Confirmed also with the current 2.21 branch head and also with 2010-12-04 Alan Modra * ldlang.c (lang_size_sections_1): Align lma using same alignment as for vma. reverted (that just looked maybe related). -- 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/12726] cannot move location counter backwards, alignment related regression on 2.21 branch
http://sourceware.org/bugzilla/show_bug.cgi?id=12726 Richard Guenther changed: What|Removed |Added Target||i?86-*-* --- Comment #1 from Richard Guenther 2011-05-03 10:54:15 UTC --- Similar issue happens on 64bit. -- 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/12726] New: cannot move location counter backwards, alignment related regression on 2.21 branch
http://sourceware.org/bugzilla/show_bug.cgi?id=12726 Summary: cannot move location counter backwards, alignment related regression on 2.21 branch Product: binutils Version: 2.21 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: rgue...@gcc.gnu.org Created attachment 5702 --> http://sourceware.org/bugzilla/attachment.cgi?id=5702 testcase While the 2.21 release links the attached testcase just fine, the 2.21 branch taken at Apr 19th fails to link it with > ld -T romlayout32seg.lds code32seg.o -o rom32seg.o romlayout32seg.lds:66 cannot move location counter backwards (from 67b0 to 67a0) If one changes the linker script to add 0x4 more room for the sections (which corresponds to their alignment) like *(.rodata.__func__.10274) . = ( 0x6782 - code32seg_start ) ; *(.rodata.__func__.8035) . = ( 0x6796 - code32seg_start ) ; *(.rodata.__func__.8048) . = ( 0x67aa - code32seg_start ) ; *(.rodata.__func__.8075) . = ( 0x67c0 - code32seg_start ) ; *(.rodata.__func__.8115) then the link succeeds. This looks like a bogus alignment calculation as with the size of 0xe for the section 0x10 should be enough space to properly align the data. -- 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/12725] Ouput issue with addr2line on Mac OS X 10.6
http://sourceware.org/bugzilla/show_bug.cgi?id=12725 ging...@adacore.com changed: What|Removed |Added CC||gingold at adacore dot com --- Comment #2 from gingold at adacore dot com 2011-05-03 10:29:24 UTC --- addr2line doesn't work on darwin with dwarf debug. This is due to the fact that debug infos are not present in executable (but stay in object files). This darwin particularity isn't handled by binutils. As a workaround you can use gdb to display locations. -- 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/12725] Ouput issue with addr2line on Mac OS X 10.6
http://sourceware.org/bugzilla/show_bug.cgi?id=12725 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com Severity|critical|normal --- Comment #1 from Alan Modra 2011-05-03 10:23:19 UTC --- Works for me on linux, both powerpc and x86. Please attach the executable for your testcase to 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 https://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/12725] New: Ouput issue with addr2line on Mac OS X 10.6
http://sourceware.org/bugzilla/show_bug.cgi?id=12725 Summary: Ouput issue with addr2line on Mac OS X 10.6 Product: binutils Version: 2.21 Status: NEW Severity: critical Priority: P2 Component: binutils AssignedTo: unassig...@sources.redhat.com ReportedBy: abo.pign...@wanadoo.fr Hello. I've used addr2line with GNAT Ada compiler on Mac OS X 10.4 PPC for years. When I swiched to Mac OS X 10.6 Intel, I got no more correct output but some "??:0". See how to reproduce it: $ cat stb.adb procedure STB is procedure P1 is begin raise Constraint_Error; end P1; procedure P2 is begin P1; end P2; begin P2; end STB; $ gnatmake -f -g stb -bargs -E gcc -c -g stb.adb gnatbind -E -x stb.ali gnatlink stb.ali -g $ ./stb Execution terminated by unhandled exception Exception name: CONSTRAINT_ERROR Message: stb.adb:4 explicit raise Call stack traceback locations: 0x1121b 0x111fb 0x111e2 0x111c0 $ addr2line --exe=stb --functions --demangle=gnat 0x1121b 0x111fb 0x111e2 0x111c0 ?? ??:0 ?? ??:0 ?? ??:0 ?? ??:0 How to display correct output? Thanks, Pascal. -- 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