Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections
authorWolfgang Denk <wd@denx.de>
Sat, 12 Jan 2008 19:31:39 +0000 (20:31 +0100)
committerWolfgang Denk <wd@denx.de>
Sat, 12 Jan 2008 19:31:39 +0000 (20:31 +0100)
commit64134f011254123618798ff77c42ba196b2ec485
treeda048d328c9cb0bd00a89bb066d2e75cd5a52fb1
parent3afac79ec27b91df185f090b31dad9620779f440
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>
268 files changed:
board/BuS/EB+MCF-EV123/u-boot.lds
board/LEOX/elpt860/u-boot.lds
board/MAI/AmigaOneG3SE/u-boot.lds
board/Marvell/db64360/u-boot.lds
board/Marvell/db64460/u-boot.lds
board/RPXClassic/u-boot.lds
board/RPXlite/u-boot.lds
board/RPXlite_dw/u-boot.lds
board/RRvision/u-boot.lds
board/adder/u-boot.lds
board/ads5121/u-boot.lds
board/adsvix/u-boot.lds
board/altera/dk1c20/u-boot.lds
board/altera/dk1s10/u-boot.lds
board/altera/ep1c20/u-boot.lds
board/altera/ep1s10/u-boot.lds
board/altera/ep1s40/u-boot.lds
board/amcc/acadia/u-boot-nand.lds
board/amcc/acadia/u-boot.lds
board/amcc/bamboo/u-boot-nand.lds
board/amcc/bamboo/u-boot.lds
board/amcc/bubinga/u-boot.lds
board/amcc/ebony/u-boot.lds
board/amcc/katmai/u-boot.lds
board/amcc/kilauea/u-boot-nand.lds
board/amcc/kilauea/u-boot.lds
board/amcc/luan/u-boot.lds
board/amcc/makalu/u-boot.lds
board/amcc/ocotea/u-boot.lds
board/amcc/sequoia/u-boot-nand.lds
board/amcc/sequoia/u-boot.lds
board/amcc/taihu/u-boot.lds
board/amcc/taishan/u-boot.lds
board/amcc/walnut/u-boot.lds
board/amcc/yosemite/u-boot.lds
board/amcc/yucca/u-boot.lds
board/amirix/ap1000/u-boot.lds
board/apollon/u-boot.lds
board/armadillo/u-boot.lds
board/assabet/u-boot.lds
board/at91rm9200dk/u-boot.lds
board/atmel/atstk1000/u-boot.lds
board/atum8548/u-boot.lds
board/c2mon/u-boot.lds
board/cerf250/u-boot.lds
board/cm4008/u-boot.lds
board/cm41xx/u-boot.lds
board/cm5200/u-boot.lds
board/cmc_pu2/u-boot.lds
board/cobra5272/u-boot.lds
board/cogent/u-boot.lds
board/cradle/u-boot.lds
board/cray/L1/u-boot.lds
board/csb226/u-boot.lds
board/csb272/u-boot.lds
board/csb472/u-boot.lds
board/csb637/u-boot.lds
board/dave/B2/u-boot.lds
board/dave/PPChameleonEVB/u-boot.lds
board/davinci/dv-evm/u-boot.lds
board/davinci/schmoogie/u-boot.lds
board/davinci/sonata/u-boot.lds
board/dbau1x00/u-boot.lds
board/delta/u-boot.lds
board/dnp1110/u-boot.lds
board/eltec/bab7xx/u-boot.lds
board/eltec/elppc/u-boot.lds
board/eltec/mhpc/u-boot.lds
board/emk/top860/u-boot.lds
board/ep7312/u-boot.lds
board/ep88x/u-boot.lds
board/eric/u-boot.lds
board/esd/adciop/u-boot.lds
board/esd/apc405/u-boot.lds
board/esd/ar405/u-boot.lds
board/esd/ash405/u-boot.lds
board/esd/canbt/u-boot.lds
board/esd/cms700/u-boot.lds
board/esd/cpci2dp/u-boot.lds
board/esd/cpci405/u-boot.lds
board/esd/cpci750/u-boot.lds
board/esd/cpciiser4/u-boot.lds
board/esd/dasa_sim/u-boot.lds
board/esd/dp405/u-boot.lds
board/esd/du405/u-boot.lds
board/esd/hh405/u-boot.lds
board/esd/hub405/u-boot.lds
board/esd/ocrtc/u-boot.lds
board/esd/pci405/u-boot.lds
board/esd/plu405/u-boot.lds
board/esd/pmc405/u-boot.lds
board/esd/pmc440/u-boot-nand.lds
board/esd/pmc440/u-boot.lds
board/esd/tasreg/u-boot.lds
board/esd/voh405/u-boot.lds
board/esd/vom405/u-boot.lds
board/esd/wuh405/u-boot.lds
board/esteem192e/u-boot.lds
board/etx094/u-boot.lds
board/evb4510/u-boot.lds
board/evb64260/u-boot.lds
board/exbitgen/u-boot.lds
board/fads/u-boot.lds
board/flagadm/u-boot.lds
board/freescale/m5235evb/u-boot.lds
board/freescale/m5249evb/u-boot.lds
board/freescale/m5253evbe/u-boot.lds
board/freescale/m5329evb/u-boot.lds
board/freescale/m54455evb/u-boot.lds
board/freescale/mpc8540ads/u-boot.lds
board/freescale/mpc8541cds/u-boot.lds
board/freescale/mpc8544ds/u-boot.lds
board/freescale/mpc8548cds/u-boot.lds
board/freescale/mpc8555cds/u-boot.lds
board/freescale/mpc8560ads/u-boot.lds
board/freescale/mpc8568mds/u-boot.lds
board/freescale/mpc8610hpcd/u-boot.lds
board/freescale/mpc8641hpcn/u-boot.lds
board/g2000/u-boot.lds
board/gcplus/u-boot.lds
board/gen860t/u-boot-flashenv.lds
board/gen860t/u-boot.lds
board/genietv/u-boot.lds
board/gth/u-boot.lds
board/gth2/u-boot.lds
board/hermes/u-boot.lds
board/hymod/u-boot.lds
board/icu862/u-boot.lds
board/idmr/u-boot.lds
board/impa7/u-boot.lds
board/incaip/u-boot.lds
board/innokom/u-boot.lds
board/ip860/u-boot.lds
board/ivm/u-boot.lds
board/ixdp425/u-boot.lds
board/jse/u-boot.lds
board/kb9202/u-boot.lds
board/korat/u-boot.lds
board/kup/kup4k/u-boot.lds
board/kup/kup4x/u-boot.lds
board/lantec/u-boot.lds
board/lart/u-boot.lds
board/logodl/u-boot.lds
board/lpc2292sodimm/u-boot.lds
board/lpd7a40x/u-boot.lds
board/lubbock/u-boot.lds
board/lwmon/u-boot.lds
board/lwmon5/u-boot.lds
board/m5271evb/u-boot.lds
board/m5272c3/u-boot.lds
board/m5282evb/u-boot.lds
board/mbx8xx/u-boot.lds
board/mgsuvd/u-boot.lds
board/ml2/u-boot.lds
board/modnet50/u-boot.lds
board/mousse/u-boot.lds
board/mp2usb/u-boot.lds
board/mpc7448hpc2/u-boot.lds
board/mpc8540eval/u-boot.lds
board/mpl/mip405/u-boot.lds
board/mpl/pip405/u-boot.lds
board/mpl/vcma9/u-boot.lds
board/ms7722se/u-boot.lds
board/ms7750se/u-boot.lds
board/munices/u-boot.lds
board/mvs1/u-boot.lds
board/mx1ads/u-boot.lds
board/mx1fs2/u-boot.lds
board/nc650/u-boot.lds
board/netphone/u-boot.lds
board/netstal/hcu4/u-boot.lds
board/netstal/hcu5/u-boot.lds
board/netstar/eeprom.lds
board/netstar/u-boot.lds
board/netta/u-boot.lds
board/netta2/u-boot.lds
board/netvia/u-boot.lds
board/ns9750dev/u-boot.lds
board/nx823/u-boot.lds
board/omap1510inn/u-boot.lds
board/omap1610inn/u-boot.lds
board/omap2420h4/u-boot.lds
board/omap5912osk/u-boot.lds
board/omap730p2/u-boot.lds
board/pb1x00/u-boot.lds
board/pcippc2/u-boot.lds
board/pcs440ep/u-boot.lds
board/pleb2/u-boot.lds
board/pm854/u-boot.lds
board/pm856/u-boot.lds
board/ppmc7xx/u-boot.lds
board/prodrive/alpr/u-boot.lds
board/prodrive/p3mx/u-boot.lds
board/prodrive/p3p440/u-boot.lds
board/prodrive/pdnb3/u-boot.lds
board/psyent/pci5441/u-boot.lds
board/psyent/pk1c20/u-boot.lds
board/purple/u-boot.lds
board/pxa255_idp/u-boot.lds
board/quantum/u-boot.lds
board/r360mpi/u-boot.lds
board/r5200/u-boot.lds
board/rbc823/u-boot.lds
board/rmu/u-boot.lds
board/rsdproto/u-boot.lds
board/sandburst/karef/u-boot.lds
board/sandburst/metrobox/u-boot.lds
board/sbc2410x/u-boot.lds
board/sbc405/u-boot.lds
board/sbc8548/u-boot.lds
board/sbc8560/u-boot.lds
board/sbc8641d/u-boot.lds
board/sc3/u-boot.lds
board/sc520_cdp/u-boot.lds
board/sc520_spunk/u-boot.lds
board/scb9328/u-boot.lds
board/shannon/u-boot.lds
board/siemens/CCM/u-boot.lds
board/siemens/IAD210/u-boot.lds
board/siemens/SMN42/u-boot.lds
board/siemens/pcu_e/u-boot.lds
board/sixnet/u-boot.lds
board/smdk2400/u-boot.lds
board/smdk2410/u-boot.lds
board/snmc/qs850/u-boot.lds
board/snmc/qs860t/u-boot.lds
board/spc1920/u-boot.lds
board/spd8xx/u-boot.lds
board/ssv/adnpesc1/u-boot.lds
board/stxgp3/u-boot.lds
board/stxssa/u-boot.lds
board/stxxtc/u-boot.lds
board/svm_sc8xx/u-boot.lds
board/sx1/u-boot.lds
board/tb0229/u-boot.lds
board/tqm85xx/u-boot.lds
board/tqm8xx/u-boot.lds
board/trab/u-boot.lds
board/trizepsiv/u-boot.lds
board/uc100/u-boot.lds
board/v37/u-boot.lds
board/versatile/u-boot.lds
board/voiceblue/eeprom.lds
board/voiceblue/u-boot.lds
board/w7o/u-boot.lds
board/wepep250/u-boot.lds
board/westel/amx860/u-boot.lds
board/xaeniax/u-boot.lds
board/xilinx/ml300/u-boot.lds
board/xm250/u-boot.lds
board/xpedite1k/u-boot.lds
board/xsengine/u-boot.lds
board/zeus/u-boot.lds
board/zylonite/u-boot.lds
cpu/mpc5xx/u-boot.lds
cpu/mpc5xxx/u-boot-customlayout.lds
cpu/mpc5xxx/u-boot.lds
cpu/mpc8220/u-boot.lds
cpu/mpc824x/u-boot.lds
cpu/mpc8260/u-boot.lds
cpu/mpc83xx/u-boot.lds
examples/mips.lds
examples/nios.lds
examples/nios2.lds
nand_spl/board/amcc/acadia/u-boot.lds
nand_spl/board/amcc/bamboo/u-boot.lds
nand_spl/board/amcc/kilauea/u-boot.lds
nand_spl/board/amcc/sequoia/u-boot.lds