[U-Boot-Users] [PATCH v2][for 1.3.4] mpc85xx: workaround old binutils bug

Wolfgang Denk wd at denx.de
Sun Aug 10 22:41:28 CEST 2008


Dear Kumar Gala,

In message <Pine.LNX.4.64.0808070927530.26243 at blarg.am.freescale.net> you wrote:
> The recent change to move the .bss outside of the image gives older
> binutils (ld from eldk4.1/binutils-2.16) some headache:
> 
> ppc_85xx-ld: u-boot: Not enough room for program headers (allocated 3, need 4)
> ppc_85xx-ld: final link failed: Bad value
> 
> We workaround it by being explicit about the program headers and not
> assigning the .bss to a program header.
> 
> Signed-off-by: Kumar Gala <galak at kernel.crashing.org>
> ---
> 
> Fixes warning with older binutils
> 
>  board/freescale/mpc8540ads/u-boot.lds |   16 +++++++++++-----
>  board/freescale/mpc8541cds/u-boot.lds |   16 +++++++++++-----
>  board/freescale/mpc8544ds/u-boot.lds  |   16 +++++++++++-----
>  board/freescale/mpc8548cds/u-boot.lds |   16 +++++++++++-----
>  board/freescale/mpc8555cds/u-boot.lds |   16 +++++++++++-----
>  board/freescale/mpc8560ads/u-boot.lds |   16 +++++++++++-----
>  board/freescale/mpc8568mds/u-boot.lds |   16 +++++++++++-----
>  7 files changed, 77 insertions(+), 35 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I can't understand it. I can't even understand  the  people  who  can
understand it.                    - Queen Juliana of the Netherlands.




More information about the U-Boot mailing list