]> git.sur5r.net Git - u-boot/commit
Fix all linker script to handle all rodata sections
authorTrent Piepho <xyzzy@speakeasy.org>
Wed, 18 Feb 2009 23:22:05 +0000 (15:22 -0800)
committerWolfgang Denk <wd@denx.de>
Fri, 20 Mar 2009 21:39:12 +0000 (22:39 +0100)
commitf62fb99941c625605aa16a0097b396a5c16d2c88
treea0269ee7e9fa0efacf18d9b6b2a44000c731aa0f
parent566b652c7cdb0e5e0529bb3d1eaffbd2bf45a032
Fix all linker script to handle all rodata sections

A recent gcc added a new unaligned rodata section called '.rodata.str1.1',
which needs to be added the the linker script.  Instead of just adding this
one section, we use a wildcard ".rodata*" to get all rodata linker section
gcc has now and might add in the future.

However, '*(.rodata*)' by itself will result in sub-optimal section
ordering.  The sections will be sorted by object file, which causes extra
padding between the unaligned rodata.str.1.1 of one object file and the
aligned rodata of the next object file.  This is easy to fix by using the
SORT_BY_ALIGNMENT command.

This patch has not be tested one most of the boards modified.  Some boards
have a linker script that looks something like this:

*(.text)
. = ALIGN(16);
*(.rodata)
*(.rodata.str1.4)
*(.eh_frame)

I change this to:

*(.text)
. = ALIGN(16);
*(.eh_frame)
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))

This means the start of rodata will no longer be 16 bytes aligned.
However, the boundary between text and rodata/eh_frame is still aligned to
16 bytes, which is what I think the real purpose of the ALIGN call is.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
333 files changed:
board/AtmarkTechno/suzaku/u-boot.lds
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/actux1/u-boot.lds
board/actux2/u-boot.lds
board/actux3/u-boot.lds
board/actux4/u-boot.lds
board/adder/u-boot.lds
board/ads5121/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/canyonlands/u-boot-nand.lds
board/amcc/canyonlands/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/redwood/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/armltd/versatile/u-boot.lds
board/assabet/u-boot.lds
board/atmel/at91rm9200dk/u-boot.lds
board/atmel/atngw100/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/dvevm/u-boot.lds
board/davinci/schmoogie/u-boot.lds
board/davinci/sffsdr/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/eNET/u-boot.lds
board/earthlcd/favr-32-ezkit/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/du440/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/m5249evb/u-boot.lds
board/freescale/m5253demo/u-boot.lds
board/freescale/m5253evbe/u-boot.lds
board/freescale/m5271evb/u-boot.lds
board/freescale/m5272c3/u-boot.lds
board/freescale/m5275evb/u-boot.lds
board/freescale/m5282evb/u-boot.lds
board/freescale/m53017evb/u-boot.lds
board/freescale/m5329evb/u-boot.lds
board/freescale/m5373evb/u-boot.lds
board/freescale/m547xevb/u-boot.lds
board/freescale/m548xevb/u-boot.lds
board/freescale/mpc7448hpc2/u-boot.lds
board/freescale/mpc8536ds/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/mpc8572ds/u-boot.lds
board/freescale/mpc8610hpcd/u-boot.lds
board/freescale/mpc8641hpcn/u-boot.lds
board/freescale/mx31ads/u-boot.lds
board/g2000/u-boot.lds
board/gaisler/gr_cpci_ax2000/u-boot.lds
board/gaisler/gr_ep2s60/u-boot.lds
board/gaisler/gr_xc3s_1500/u-boot.lds
board/gaisler/grsim/u-boot.lds
board/gaisler/grsim_leon2/u-boot.lds
board/gcplus/u-boot.lds
board/gdsys/gdppc440etx/u-boot.lds
board/gdsys/neo/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/imx31_litekit/u-boot.lds
board/imx31_phycore/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-F7FC.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/m501sk/u-boot.lds
board/mbx8xx/u-boot.lds
board/micronas/vct/u-boot.lds
board/mimc/mimc200/u-boot.lds
board/miromico/hammerhead/u-boot.lds
board/ml2/u-boot.lds
board/modnet50/u-boot.lds
board/mousse/u-boot.lds
board/mp2usb/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/mpr2/u-boot.lds
board/ms7720se/u-boot.lds
board/ms7722se/u-boot.lds
board/ms7750se/u-boot.lds
board/munices/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/netstal/mcu25/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/omap3/beagle/u-boot.lds
board/omap3/evm/u-boot.lds
board/omap3/overo/u-boot.lds
board/omap3/pandora/u-boot.lds
board/omap3/zoom1/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/qemu-mips/u-boot.lds
board/quad100hd/u-boot.lds
board/quantum/u-boot.lds
board/r360mpi/u-boot.lds
board/rbc823/u-boot.lds
board/renesas/MigoR/u-boot.lds
board/renesas/ap325rxa/u-boot.lds
board/renesas/r2dplus/u-boot.lds
board/renesas/r7780mp/u-boot.lds
board/renesas/rsk7203/u-boot.lds
board/renesas/sh7763rdp/u-boot.lds
board/renesas/sh7785lcr/u-boot.lds
board/rmu/u-boot.lds
board/rsdproto/u-boot.lds
board/samsung/smdk2400/u-boot.lds
board/samsung/smdk2410/u-boot.lds
board/samsung/smdk6400/u-boot-nand.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/snmc/qs850/u-boot.lds
board/snmc/qs860t/u-boot.lds
board/socrates/u-boot.lds
board/spc1920/u-boot.lds
board/spd8xx/u-boot.lds
board/ssv/adnpesc1/u-boot.lds
board/st/nmdk8815/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/tqc/tqm85xx/u-boot.lds
board/tqc/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/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/xes/xpedite5200/u-boot.lds
board/xes/xpedite5370/u-boot.lds
board/xilinx/microblaze-generic/u-boot.lds
board/xilinx/ml300/u-boot.lds
board/xilinx/ppc405-generic/u-boot-ram.lds
board/xilinx/ppc405-generic/u-boot-rom.lds
board/xilinx/ppc440-generic/u-boot-ram.lds
board/xilinx/ppc440-generic/u-boot-rom.lds
board/xm250/u-boot.lds
board/xpedite1k/u-boot.lds
board/xpedite1k/u-boot.lds.debug
board/xsengine/u-boot.lds
board/zeus/u-boot.lds
board/zylonite/u-boot.lds
cpu/arm926ejs/at91/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
examples/sparc.lds
nand_spl/board/amcc/acadia/u-boot.lds
nand_spl/board/amcc/bamboo/u-boot.lds
nand_spl/board/amcc/canyonlands/u-boot.lds
nand_spl/board/amcc/kilauea/u-boot.lds
nand_spl/board/amcc/sequoia/u-boot.lds
nand_spl/board/freescale/mpc8313erdb/u-boot.lds
nand_spl/board/samsung/smdk6400/u-boot.lds
nand_spl/board/sheldon/simpc8313/u-boot.lds
onenand_ipl/board/apollon/u-boot.onenand.lds