u-boot/board/netstar
Wolfgang Denk 1aada9cd64 Fix all linker scripts for older binutils versions (pre-2.16)
Commit f62fb99941 fixed handling of all rodata sections by using a
wildcard combined with calls to ld's builtin functions SORT_BY_ALIGNMENT()
and SORT_BY_NAME().  Unfortunately these functions were only
introduced with biunutils version 2.16, so the modification broke
building with all tool chains using older binutils.

This patch makes it work again.  This is done by omitting the use of
these functions for such old tool chains.  This will result in
slightly larger target binaries, as the rodata sections are no longer
in optimal order alignment-wise which reauls in unused gaps, but the
effect was found to be insignificant - especially compared to the fact
that you cannot build U-Boot at all in the current state.

As ld seems to have no support for conditionals we run the linker
script through the C preprocessor which can be easily used to remove
the unwanted function calls.

Note that the C preprocessor must be run with the "-ansi" (or a
"-std=") option to make sure all the system-specific predefined
macros outside the reserved namespace are suppressed. Otherise, cpp
might for example substitute "powerpc" to "1", thus corrupting for
example "OUTPUT_ARCH(powerpc)" etc.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Mike Frysinger <vapier@gentoo.org>
2009-08-21 23:13:34 +02:00
..
config.mk Fix JFFS2 support for legacy NAND driver. 2006-04-08 19:08:06 +02:00
crcek.h Update of new NAND code 2005-09-14 23:53:32 +02:00
crcek.S Big white-space cleanup. 2008-05-21 00:14:08 +02:00
crcit.c NetStar: update crcit utility 2009-03-29 16:04:51 +02:00
eeprom.c Update U-Boot's build timestamp on every compile 2008-12-06 23:36:43 +01:00
eeprom.lds Fix e-mail address of Gary Jennejohn. 2009-05-15 22:11:59 +02:00
eeprom_start.S Big white-space cleanup. 2008-05-21 00:14:08 +02:00
Makefile Fix all linker scripts for older binutils versions (pre-2.16) 2009-08-21 23:13:34 +02:00
netstar.c arm: timer and interrupt init rework 2009-06-12 20:39:48 +02:00
setup.S Big white-space cleanup. 2008-05-21 00:14:08 +02:00