Launchpad has imported 7 comments from the remote bug at
http://sourceware.org/bugzilla/show_bug.cgi?id=12726.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-05-03T10:46:36+00:00 Rguenth wrote:

Created attachment 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 
00000000000067b0 to 00000000000067a0)

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.

Reply at: https://bugs.launchpad.net/binutils/+bug/756044/comments/2

------------------------------------------------------------------------
On 2011-05-03T10:54:15+00:00 Rguenth wrote:

Similar issue happens on 64bit.

Reply at: https://bugs.launchpad.net/binutils/+bug/756044/comments/3

------------------------------------------------------------------------
On 2011-05-03T11:23:27+00:00 Rguenth wrote:

Confirmed also with the current 2.21 branch head and also with

2010-12-04  Alan Modra  <[email protected]>

        * ldlang.c (lang_size_sections_1): Align lma using same alignment
        as for vma.

reverted (that just looked maybe related).

Reply at: https://bugs.launchpad.net/binutils/+bug/756044/comments/4

------------------------------------------------------------------------
On 2011-05-03T13:24:52+00:00 Alan Modra wrote:

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.

Reply at: https://bugs.launchpad.net/binutils/+bug/756044/comments/5

------------------------------------------------------------------------
On 2011-05-03T14:56:18+00:00 Cvs-commit wrote:

CVSROOT:        /cvs/src
Module name:    src
Changes by:     [email protected]   2011-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

Reply at: https://bugs.launchpad.net/binutils/+bug/756044/comments/6

------------------------------------------------------------------------
On 2011-05-03T15:16:51+00:00 Cvs-commit wrote:

CVSROOT:        /cvs/src
Module name:    src
Branch:         binutils-2_21-branch
Changes by:     [email protected]   2011-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.2222.2.20&r2=1.2222.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

Reply at: https://bugs.launchpad.net/binutils/+bug/756044/comments/7

------------------------------------------------------------------------
On 2011-05-03T15:18:26+00:00 Alan Modra wrote:

Fixed

Reply at: https://bugs.launchpad.net/binutils/+bug/756044/comments/8


** Changed in: binutils
       Status: Unknown => Fix Released

** Changed in: binutils
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/756044

Title:
  seabios version 0.6.1.2-0ubuntu1 failed to build on i386

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to