diff options
author | Wolfgang Denk <wd@denx.de> | 2008-01-12 20:31:39 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-01-12 20:31:39 +0100 |
commit | 64134f011254123618798ff77c42ba196b2ec485 (patch) | |
tree | da048d328c9cb0bd00a89bb066d2e75cd5a52fb1 /board/esd | |
parent | 3afac79ec27b91df185f090b31dad9620779f440 (diff) | |
download | u-boot-imx-64134f011254123618798ff77c42ba196b2ec485.zip u-boot-imx-64134f011254123618798ff77c42ba196b2ec485.tar.gz u-boot-imx-64134f011254123618798ff77c42ba196b2ec485.tar.bz2 |
Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections
With recent toolchain versions, some boards would not build because
or errors like this one (here for ocotea board when building with
ELDK 4.2 beta):
ppc_4xx-ld: section .bootpg [fffff000 -> fffff23b] overlaps section .bss [fffee900 -> fffff8ab]
For many boards, the .bss section is big enough that it wraps around
at the end of the address space (0xFFFFFFFF), so the problem will not
be visible unless you use a 64 bit tool chain for development. On
some boards however, changes to the code size (due to different
optimizations) we bail out with section overlaps like above.
The fix is to add the NOLOAD attribute to the .bss and .sbss
sections, telling the linker that .bss does not consume any space in
the image.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'board/esd')
-rw-r--r-- | board/esd/adciop/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/apc405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/ar405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/ash405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/canbt/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/cms700/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/cpci2dp/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/cpci405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/cpci750/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/cpciiser4/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/dasa_sim/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/dp405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/du405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/hh405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/hub405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/ocrtc/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/pci405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/plu405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/pmc405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/pmc440/u-boot-nand.lds | 2 | ||||
-rw-r--r-- | board/esd/pmc440/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/tasreg/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/voh405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/vom405/u-boot.lds | 2 | ||||
-rw-r--r-- | board/esd/wuh405/u-boot.lds | 2 |
25 files changed, 25 insertions, 25 deletions
diff --git a/board/esd/adciop/u-boot.lds b/board/esd/adciop/u-boot.lds index ef937dd..7fd4fb1 100644 --- a/board/esd/adciop/u-boot.lds +++ b/board/esd/adciop/u-boot.lds @@ -127,7 +127,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/apc405/u-boot.lds b/board/esd/apc405/u-boot.lds index 8ba6ad5..9dad748 100644 --- a/board/esd/apc405/u-boot.lds +++ b/board/esd/apc405/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/ar405/u-boot.lds b/board/esd/ar405/u-boot.lds index 64293d2..ec1c2a0 100644 --- a/board/esd/ar405/u-boot.lds +++ b/board/esd/ar405/u-boot.lds @@ -152,7 +152,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/ash405/u-boot.lds b/board/esd/ash405/u-boot.lds index b49e3ff..bea9524 100644 --- a/board/esd/ash405/u-boot.lds +++ b/board/esd/ash405/u-boot.lds @@ -137,7 +137,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/canbt/u-boot.lds b/board/esd/canbt/u-boot.lds index aaaccbe..cf37735 100644 --- a/board/esd/canbt/u-boot.lds +++ b/board/esd/canbt/u-boot.lds @@ -150,7 +150,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/cms700/u-boot.lds b/board/esd/cms700/u-boot.lds index 8ba6ad5..9dad748 100644 --- a/board/esd/cms700/u-boot.lds +++ b/board/esd/cms700/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/cpci2dp/u-boot.lds b/board/esd/cpci2dp/u-boot.lds index 8ba6ad5..9dad748 100644 --- a/board/esd/cpci2dp/u-boot.lds +++ b/board/esd/cpci2dp/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/cpci405/u-boot.lds b/board/esd/cpci405/u-boot.lds index 8ba6ad5..9dad748 100644 --- a/board/esd/cpci405/u-boot.lds +++ b/board/esd/cpci405/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/cpci750/u-boot.lds b/board/esd/cpci750/u-boot.lds index d89eb6c..0f9a157 100644 --- a/board/esd/cpci750/u-boot.lds +++ b/board/esd/cpci750/u-boot.lds @@ -126,7 +126,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/cpciiser4/u-boot.lds b/board/esd/cpciiser4/u-boot.lds index 8ba6ad5..9dad748 100644 --- a/board/esd/cpciiser4/u-boot.lds +++ b/board/esd/cpciiser4/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/dasa_sim/u-boot.lds b/board/esd/dasa_sim/u-boot.lds index 497177d..22d7128 100644 --- a/board/esd/dasa_sim/u-boot.lds +++ b/board/esd/dasa_sim/u-boot.lds @@ -153,7 +153,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/dp405/u-boot.lds b/board/esd/dp405/u-boot.lds index 43fe6ca..3f23050 100644 --- a/board/esd/dp405/u-boot.lds +++ b/board/esd/dp405/u-boot.lds @@ -139,7 +139,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/du405/u-boot.lds b/board/esd/du405/u-boot.lds index 21c5044..e156202 100644 --- a/board/esd/du405/u-boot.lds +++ b/board/esd/du405/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/hh405/u-boot.lds b/board/esd/hh405/u-boot.lds index 8ba6ad5..9dad748 100644 --- a/board/esd/hh405/u-boot.lds +++ b/board/esd/hh405/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/hub405/u-boot.lds b/board/esd/hub405/u-boot.lds index 852e9ed..193e8b2 100644 --- a/board/esd/hub405/u-boot.lds +++ b/board/esd/hub405/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/ocrtc/u-boot.lds b/board/esd/ocrtc/u-boot.lds index 8ff25fa..508c5d2 100644 --- a/board/esd/ocrtc/u-boot.lds +++ b/board/esd/ocrtc/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/pci405/u-boot.lds b/board/esd/pci405/u-boot.lds index 8ba6ad5..9dad748 100644 --- a/board/esd/pci405/u-boot.lds +++ b/board/esd/pci405/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/plu405/u-boot.lds b/board/esd/plu405/u-boot.lds index 43fe6ca..3f23050 100644 --- a/board/esd/plu405/u-boot.lds +++ b/board/esd/plu405/u-boot.lds @@ -139,7 +139,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/pmc405/u-boot.lds b/board/esd/pmc405/u-boot.lds index 898963c..f75fe0a 100644 --- a/board/esd/pmc405/u-boot.lds +++ b/board/esd/pmc405/u-boot.lds @@ -137,7 +137,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/pmc440/u-boot-nand.lds b/board/esd/pmc440/u-boot-nand.lds index cf2e2b5..e0b5113 100644 --- a/board/esd/pmc440/u-boot-nand.lds +++ b/board/esd/pmc440/u-boot-nand.lds @@ -124,7 +124,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/pmc440/u-boot.lds b/board/esd/pmc440/u-boot.lds index a423f98..e140737 100644 --- a/board/esd/pmc440/u-boot.lds +++ b/board/esd/pmc440/u-boot.lds @@ -130,7 +130,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/tasreg/u-boot.lds b/board/esd/tasreg/u-boot.lds index a803b1c..4f47323 100644 --- a/board/esd/tasreg/u-boot.lds +++ b/board/esd/tasreg/u-boot.lds @@ -131,7 +131,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { _sbss = .; *(.sbss) *(.scommon) diff --git a/board/esd/voh405/u-boot.lds b/board/esd/voh405/u-boot.lds index 43fe6ca..3f23050 100644 --- a/board/esd/voh405/u-boot.lds +++ b/board/esd/voh405/u-boot.lds @@ -139,7 +139,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/vom405/u-boot.lds b/board/esd/vom405/u-boot.lds index 8ba6ad5..9dad748 100644 --- a/board/esd/vom405/u-boot.lds +++ b/board/esd/vom405/u-boot.lds @@ -138,7 +138,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) diff --git a/board/esd/wuh405/u-boot.lds b/board/esd/wuh405/u-boot.lds index b49e3ff..bea9524 100644 --- a/board/esd/wuh405/u-boot.lds +++ b/board/esd/wuh405/u-boot.lds @@ -137,7 +137,7 @@ SECTIONS __init_end = .; __bss_start = .; - .bss : + .bss (NOLOAD) : { *(.sbss) *(.scommon) *(.dynbss) |