[U-Boot-Users] 85xx: Not enough room for program headers

Hi,
With today's top of the tree U-Boot I'm getting this:
./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... ppc_85xx-ld: u-boot: Not enough room for program headers (allocated 3, need 4) ppc_85xx-ld: final link failed: Bad value make: *** [u-boot] Błąd 1 ppc_85xx-size: './u-boot': No such file
Is this known, anyone working on fixing this perhaps?
kind regards, Rafal

Yes, I also happened it as you.
Please revert it and have a try.
Revert "mpc85xx: Update linker scripts for Freescale boards"
This reverts commit f0ff885ca64655bee6540eb8a25eed90b1152686.
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of Rafal Jaworowski Sent: 2008?8?4? 5:09 PM To: u-boot-users Subject: [U-Boot-Users] 85xx: Not enough room for program headers
Hi,
With today's top of the tree U-Boot I'm getting this:
./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... ppc_85xx-ld: u-boot: Not enough room for program headers (allocated 3, need 4) ppc_85xx-ld: final link failed: Bad value make: *** [u-boot] Błąd 1 ppc_85xx-size: './u-boot': No such file
Is this known, anyone working on fixing this perhaps?
kind regards, Rafal
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

In message 4896C728.40903@semihalf.com you wrote:
Hi,
With today's top of the tree U-Boot I'm getting this:
./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... ppc_85xx-ld: u-boot: Not enough room for program headers (allocated 3, need= 4) ppc_85xx-ld: final link failed: Bad value make: *** [u-boot] B=B3=B1d 1 ppc_85xx-size: './u-boot': No such file
Hm... using ELDK 4.2 I get this:
-> ./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... text data bss dec hex filename 196852 15284 26492 238628 3a424 ./u-boot
Is this known, anyone working on fixing this perhaps?
Which toolchain did you use?
Best regards,
Wolfgang Denk

Wolfgang Denk wrote:
With today's top of the tree U-Boot I'm getting this:
./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... ppc_85xx-ld: u-boot: Not enough room for program headers (allocated 3, need= 4) ppc_85xx-ld: final link failed: Bad value make: *** [u-boot] B=B3=B1d 1 ppc_85xx-size: './u-boot': No such file
Hm... using ELDK 4.2 I get this:
-> ./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... text data bss dec hex filename 196852 15284 26492 238628 3a424 ./u-boot
Is this known, anyone working on fixing this perhaps?
Which toolchain did you use?
Mine was ELDK 4.1; it seems the two gcc/linker versions lay out the binary differently then..
kind regards, Rafal

Rafal,
Can you try the following patch and see if works for you (make sure the resulting image actually boots the board). If so I'll fixup all the .lds I changed to match.
diff --git a/board/freescale/mpc8555cds/u-boot.lds b/board/freescale/mpc8555cds/u-boot.lds index a18b3a7..e7fbe5d 100644 --- a/board/freescale/mpc8555cds/u-boot.lds +++ b/board/freescale/mpc8555cds/u-boot.lds @@ -23,6 +23,11 @@ OUTPUT_ARCH(powerpc) /* Do we need any of these for elf? __DYNAMIC = 0; */ +PHDRS +{ + text PT_LOAD ; +} + SECTIONS { /* Read-only sections, merged into text segment: */ @@ -54,7 +59,7 @@ SECTIONS *(.text) *(.fixup) *(.got1) - } + } :text _etext = .; PROVIDE (etext = .); .rodata : @@ -63,7 +68,7 @@ SECTIONS *(.rodata1) *(.rodata.str1.4) *(.eh_frame) - } + } :text .fini : { *(.fini) } =0 .ctors : { *(.ctors) } .dtors : { *(.dtors) } @@ -115,12 +120,12 @@ SECTIONS .bootpg ADDR(.text) + 0x7f000 : { cpu/mpc85xx/start.o (.bootpg) - } = 0xffff + } :text = 0xffff
.resetvec ADDR(.text) + 0x7fffc : { *(.resetvec) - } = 0xffff + } :text = 0xffff
. = ADDR(.text) + 0x80000;
@@ -131,7 +136,7 @@ SECTIONS *(.dynbss) *(.bss) *(COMMON) - } + } :NONE
. = ALIGN(4); _end = . ;

Kumar Gala wrote:
Can you try the following patch and see if works for you (make sure the resulting image actually boots the board). If so I'll fixup all the .lds I changed to match.
Hi Kumar,
Thanks, the code works, although during compilation the following warning appears:
./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... ppc_85xx-ld: u-boot: warning: allocated section `.bss' not in segment text data bss dec hex filename 194515 16028 26488 237031 39de7 ./u-boot
Rafal

On Aug 7, 2008, at 5:47 AM, Rafal Jaworowski wrote:
Kumar Gala wrote:
Can you try the following patch and see if works for you (make sure the resulting image actually boots the board). If so I'll fixup all the .lds I changed to match.
Hi Kumar,
Thanks, the code works, although during compilation the following warning appears:
./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... ppc_85xx-ld: u-boot: warning: allocated section `.bss' not in segment text data bss dec hex filename 194515 16028 26488 237031 39de7 ./u-boot
Yeah it was the best I could do.. older binutils have some issue and figured a warning was better than it not functioning at all.
- k

In message E704DFB0-1AE6-4FC6-817E-585ED4EC9EA9@kernel.crashing.org you wrote:
./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... ppc_85xx-ld: u-boot: warning: allocated section `.bss' not in segment text data bss dec hex filename 194515 16028 26488 237031 39de7 ./u-boot
Yeah it was the best I could do.. older binutils have some issue and figured a warning was better than it not functioning at all.
Hm... previous experience with ld has made me extremely suspicious about ld warnings. They all turn into subtle, but nasty errors sooner or later.
I think we should find a solution that does without such warnings.
If this is impossible in the remaining time (given the late state in the release cycle) I think it is better to back out the patch that causes the problem, and try to solve this wil less pressure in the next release.
Best regards,
Wolfgang Denk

On Aug 7, 2008, at 8:21 AM, Wolfgang Denk wrote:
In message E704DFB0-1AE6-4FC6-817E-585ED4EC9EA9@kernel.crashing.org you wrote:
./MAKEALL MPC8555CDS Configuring for MPC8555CDS board... ppc_85xx-ld: u-boot: warning: allocated section `.bss' not in segment text data bss dec hex filename 194515 16028 26488 237031 39de7 ./u-boot
Yeah it was the best I could do.. older binutils have some issue and figured a warning was better than it not functioning at all.
Hm... previous experience with ld has made me extremely suspicious about ld warnings. They all turn into subtle, but nasty errors sooner or later.
I think we should find a solution that does without such warnings.
If this is impossible in the remaining time (given the late state in the release cycle) I think it is better to back out the patch that causes the problem, and try to solve this wil less pressure in the next release.
sent a v2 that addresses the warning. hopefully that will put this to rest.
- k
participants (4)
-
Kumar Gala
-
Liu Dave
-
Rafal Jaworowski
-
Wolfgang Denk