Summary: | linker fails with section .bootpg can't be allocated in segment 1 | ||
---|---|---|---|
Product: | binutils | Reporter: | Clemens Koller <clemens.koller> |
Component: | ld | Assignee: | unassigned |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug-binutils, hjl.tools |
Priority: | P2 | ||
Version: | 2.18 | ||
Target Milestone: | --- | ||
Host: | powerpc-unknown-linux-gnu | Target: | powerpc-unknown-linux-gnu |
Build: | powerpc-unknown-linux-gnu | Last reconfirmed: | |
Attachments: | reduced testcase |
Description
Clemens Koller
2007-10-22 08:43:17 UTC
Created attachment 2057 [details]
reduced testcase
I can't reproduce it: ./ld -Bstatic -T u-boot.lds -Ttext 0xfffc0000 -n start.o resetvec.o -Map u-boot.map -o u-boot start.o: In function `_start_cont': /share/home/clemens/work/u-boot/u-boot-1.3.0-rc3/cpu/mpc85xx/start.S:326: undefined reference to `cpu_init_f' /share/home/clemens/work/u-boot/u-boot-1.3.0-rc3/cpu/mpc85xx/start.S:327: undefined reference to `board_init_f' .... ld seems to fails before it starts to resolve the external (in the testcase _not_ included) references. I'll have to check more in detail. Any hints? (In reply to comment #3) > ld seems to fails before it starts to resolve the external (in the testcase > _not_ included) references. I'll have to check more in detail. Any hints? Without a testcase, I can't tell for sure. It can be anything from bad hardware, bad libc, bad gcc, ... This bug was fixed now in: http://sourceware.org/ml/binutils/2007-11/msg00235.html Using the latest binutils-snapshot (at least): $ ld -v GNU ld (GNU Binutils) 2.18.50.20071212 the latest U-Boot commit 41be969f4957115ed7b1fe8b890bfaee99d7a7a2 Author: Wolfgang Denk <wd@denx.de> Date: Thu Dec 6 10:21:19 2007 +0100 Release v1.3.1 compiled a $ make TQM8540_config target with gcc-4.2.2 within an native mpc8540 environment fine now. |