summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8548cds/u-boot.lds
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-08-07 09:28:20 -0500
committerWolfgang Denk <wd@denx.de>2008-08-10 22:41:12 +0200
commitc11528083ef6e55e76df742228c26e39d151813d (patch)
tree0ba54455a5ef75491129ac3eb09a70ec4a2d30ea /board/freescale/mpc8548cds/u-boot.lds
parent0bf202ec586d4466c900e987720fa635c594d689 (diff)
downloadu-boot-imx-c11528083ef6e55e76df742228c26e39d151813d.zip
u-boot-imx-c11528083ef6e55e76df742228c26e39d151813d.tar.gz
u-boot-imx-c11528083ef6e55e76df742228c26e39d151813d.tar.bz2
mpc85xx: workaround old binutils bug
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@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8548cds/u-boot.lds')
-rw-r--r--board/freescale/mpc8548cds/u-boot.lds16
1 files changed, 11 insertions, 5 deletions
diff --git a/board/freescale/mpc8548cds/u-boot.lds b/board/freescale/mpc8548cds/u-boot.lds
index 6b93395..d4a2f72 100644
--- a/board/freescale/mpc8548cds/u-boot.lds
+++ b/board/freescale/mpc8548cds/u-boot.lds
@@ -23,6 +23,12 @@
OUTPUT_ARCH(powerpc)
/* Do we need any of these for elf?
__DYNAMIC = 0; */
+PHDRS
+{
+ text PT_LOAD;
+ bss PT_LOAD;
+}
+
SECTIONS
{
/* Read-only sections, merged into text segment: */
@@ -54,7 +60,7 @@ SECTIONS
*(.text)
*(.fixup)
*(.got1)
- }
+ } :text
_etext = .;
PROVIDE (etext = .);
.rodata :
@@ -63,7 +69,7 @@ SECTIONS
*(.rodata1)
*(.rodata.str1.4)
*(.eh_frame)
- }
+ } :text
.fini : { *(.fini) } =0
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
@@ -115,12 +121,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 +137,7 @@ SECTIONS
*(.dynbss)
*(.bss)
*(COMMON)
- }
+ } :bss
. = ALIGN(4);
_end = . ;