u-boot/cpu
Trent Piepho f62fb99941 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>
2009-03-20 22:39:12 +01:00
..
74xx_7xx Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
arm720t Convert mmc_init to mmc_legacy_init 2009-02-16 18:07:40 -06:00
arm920t cpu/: get mac address from environment 2009-03-20 22:39:11 +01:00
arm925t Remove compiler warning: target CPU does not support interworking 2008-12-13 23:41:23 +01:00
arm926ejs Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
arm946es Remove compiler warning: target CPU does not support interworking 2008-12-13 23:41:23 +01:00
arm1136 Change to use "do_div" macro 2008-11-04 23:40:05 +01:00
arm1176 rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
arm_cortexa8 OMAP3: Add support for OMAP3 die ID 2009-03-13 23:17:43 +01:00
arm_intcm Remove compiler warning: target CPU does not support interworking 2008-12-13 23:41:23 +01:00
at32ap rename CFG_ macros to CONFIG_SYS 2008-10-18 21:54:03 +02:00
blackfin Blackfin: disable syscontrol code for now 2009-02-21 19:23:20 -05:00
i386 Moved SC520 Files (fix commit 407976185e) 2009-02-25 11:59:22 +01:00
ixp npe: get mac address from environment 2009-03-20 22:39:11 +01:00
leon2 Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
leon3 Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
lh7a40x Remove compiler warning: target CPU does not support interworking 2008-12-13 23:41:23 +01:00
mcf52x2 ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf523x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf532x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf547x_8x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf5227x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
mcf5445x ColdFire: PLATFORM_CPPFLAGS updates for new compiler 2009-03-17 15:58:37 -06:00
microblaze microblaze: Use cache functions (especially cache status) 2009-01-23 10:40:00 +01:00
mips MIPS: cpu/mips/Makefile: Add a missing START line 2009-02-21 22:03:24 +01:00
mpc5xx Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc5xxx Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc8xx 8xx, icache: enabling ICache not before running from RAM 2009-03-18 20:48:29 +01:00
mpc8xxx/ddr fsl-ddr: Allow system to boot if we have more than 4G of memory 2009-02-16 18:05:55 -06:00
mpc83xx Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc85xx Fix mpc85xx ddr-gen3 ddr_sdram_cfg. 2009-03-09 17:46:09 -05:00
mpc86xx 86xx: Update CPU info output on bootup 2009-02-16 18:05:57 -06:00
mpc512x cpu/: get mac address from environment 2009-03-20 22:39:11 +01:00
mpc824x Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc8220 Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
mpc8260 Fix all linker script to handle all rodata sections 2009-03-20 22:39:12 +01:00
nios Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
nios2 Command usage cleanup 2009-01-28 08:49:52 +01:00
ppc4xx cpu/: get mac address from environment 2009-03-20 22:39:11 +01:00
pxa PXA: timer use do_div and simplify it 2009-03-09 12:01:32 +01:00
s3c44b0 Remove compiler warning: target CPU does not support interworking 2008-12-13 23:41:23 +01:00
sa1100 Remove compiler warning: target CPU does not support interworking 2008-12-13 23:41:23 +01:00
sh2 sh: Fix up rsk7203 target for out of tree build 2009-01-16 10:22:27 +09:00
sh3 sh: Update sh timer function 2008-12-10 23:11:35 +09:00
sh4 sh: Add netdev header fixing of warning/build 2009-03-12 23:58:30 +09:00