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

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 2010-09-27T13:55:15+00:00 Marcin Juszkiewicz wrote:

Today I tried to compile coreboot and seabios for one of my boards. It
failed under Ubuntu so I tried Debian chroot.

It compiled fine under Debian so I tried to find out where is a problem.
Matthias Klose pointed me at binutils and it was proper hint.

Current (2.20.51.20100925-1) version in Debian/experimental had same problem as 
Ubuntu one (2.20.51.20100908-0ubuntu2). So I fetched few 
versions from snapshot.debian.org and started testing.

Last good version was 2.20.51.20100527-1 - both project compiled without
problems.

coreboot (svn://coreboot.org/coreboot/trunk@5858) failure:

gcc -m32 -Wa,--divide -fno-stack-protector -Wl,--build-id=none -nostdlib 
-nostartfiles -static -o build/coreboot_ram -Lbuild -T 
src/arch/i386/coreboot_ram.ld build/coreboot_ram.o
src/arch/i386/coreboot_ram.ld:143 cannot move location counter backwards (from 
0000000000118000 to 0000000000004000)
collect2: ld returned 1 exit status
make: *** [build/coreboot_ram] Error 1

seabios (94dc9c49c283cd576c25692d17567035557a2505 revision) failure:

  Linking out/rom16.o
ld -T out/romlayout16.lds out/code16.o -o out/rom16.o
out/romlayout16.lds:429 cannot move location counter backwards (from 
00000000000067e0 to 0000000000000000)
make: *** [out/rom16.o] Error 1

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

------------------------------------------------------------------------
On 2010-09-29T10:17:10+00:00 Marcin Juszkiewicz wrote:

Bisected binutils git tree (git://repo.or.cz/binutils.git) and this commit 
broke 
it:

commit 557189b0dd1f3dec6b00b91b9b0c5459ece72a52
Author: Alan Modra <[email protected]>
Date:   Thu Aug 19 05:51:47 2010 +0000

    binutils/
        * NEWS: Mention change in linker script expression evaluation.
    ld/
        * ld.texinfo (Expression Section): Detail expression evaluation.
        (Builtin Functions <ADDR>): Correct.
        (Builtin Functions <LOADADDR>): Don't mention LOADADDR normally
        the same as ADDR.
        (Builtin Functions <SEGMENT_START>): Typo fix.
        * ldexp.c (new_number): New function.
        (make_abs, exp_get_abs_int): Cope with NULL expld.result.section.
        (fold_unary <'~', '!', '-'>): Don't make_abs.
        (fold_binary): Simplify result section logic.  Return NULL section
        for logical ops.
        (fold_binary <SEGMENT_START>): Use new_rel_from_abs to set value to
        a consistent result.
        (fold_name <SIZEOF_HEADERS>): Return new_number, not new_abs.
        (fold_name <DEFINED, SIZEOF, ALIGNOF, LENGTH, CONSTANT>): Likewise.
        (fold_name <NAME>): No need to handle absolute symbols differently
        from relative ones.
        (fold_name <ORIGIN>): Don't return valid result when
        lang_first_phase_enum.  Return new_rel_from_abs, not new_abs.
        (exp_fold_tree_1 <etree_value>): Return new_number, not new_rel.
        (exp_fold_tree_1): Ajust for NULL expld.result.section.  When assigning
        a plain number to dot, assume the value is relative to expld.section.
        Make terms not in an output section, absolute.
        * ldlang.c (print_assignment): Fix style nit.
        (lang_size_sections_1): Cope with NULL expld.result.section.
        (lang_do_assignments_1): Likewise.
    ld/testsuite/
        * ld-scripts/memory.t: Remove ORIGIN fudge.


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

------------------------------------------------------------------------
On 2010-09-29T10:24:15+00:00 Marcin Juszkiewicz wrote:

How to reproduce:

$ git clone git://git.linuxtogo.org/home/kevin/seabios.git
$ git checkout 94dc9c49c283cd576c25692d17567035557a2505
$ cd seabios
$ make V=1

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

------------------------------------------------------------------------
On 2010-09-29T11:44:30+00:00 Marcin Juszkiewicz wrote:

Created attachment 5020
Coreboot object which fail to link + linker scripts

Minimal set of files from coreboot to get link error reproduced. Extract and
run "test.sh" script.

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

------------------------------------------------------------------------
On 2010-09-29T11:46:03+00:00 Marcin Juszkiewicz wrote:

Created attachment 5021
Seabios object which fail to link + linker script

Minimal set of files from seabios to get link error reproduced. Extract and run
"test.sh" script.

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

------------------------------------------------------------------------
On 2010-10-15T15:51:51+00:00 Marcin Juszkiewicz wrote:

17:49 hrw@home:coreboot-trunk$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.20.51-system.20101014

This snapshot version allows me to link both coreboot and seabios.

Reply at: https://bugs.launchpad.net/binutils/+bug/648895/comments/11

------------------------------------------------------------------------
On 2011-05-13T21:30:54+00:00 Alexey-zaytsev wrote:

Hey, was it actually FIXED? I'm getting an error with the current Debian
testing binutils, and it looks very similar.

GNU ld (GNU Binutils for Debian) 2.21.0.20110327


$ make
  Build Kconfig config file
  Compiling whole program out/ccode.16.s
  Compiling to assembler out/asm-offsets.s
  Generating offset file out/asm-offsets.h
  Compiling (16bit) out/code16.o
  Compiling whole program out/ccode32flat.o
  Compiling whole program out/code32seg.o
  Building ld scripts (version "pre-0.6.3-20110514_013119-zaytsev")
Fixed space: 0xe05b-0x10000  total: 8101  slack: 2  Percent slack: 0.0%
16bit size:           39520
32bit segmented size: 1636
32bit flat size:      12380
32bit flat init size: 56992
  Linking out/rom16.o
out/romlayout16.lds:691 cannot move location counter backwards (from 
000000000000ca25 to 000000000000ca0c)
make: *** [out/rom16.o] Error 1

Reply at: https://bugs.launchpad.net/binutils/+bug/648895/comments/13

------------------------------------------------------------------------
On 2011-05-13T21:47:39+00:00 Alexey-zaytsev wrote:

Just checked with the latest 2.21 snapshot, works fine, sorry for the
noise.

Reply at: https://bugs.launchpad.net/binutils/+bug/648895/comments/14


** 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/648895

Title:
  cannot move location counter backwards (from 0000000000118000 to
  0000000000004000)

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

Reply via email to