diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-10-24 17:48:54 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-01-07 02:59:46 -0500 |
commit | b9eecc342f767b50e1476fbc1aad7d88dd4ce5eb (patch) | |
tree | cc45208579dfe4f54fc71dfbad6faef1e982a8da /board/bf533-ezkit/u-boot.lds.S | |
parent | 509fc553bc6087a6f705b3bf52f3950d7d1eaa58 (diff) | |
download | u-boot-imx-b9eecc342f767b50e1476fbc1aad7d88dd4ce5eb.zip u-boot-imx-b9eecc342f767b50e1476fbc1aad7d88dd4ce5eb.tar.gz u-boot-imx-b9eecc342f767b50e1476fbc1aad7d88dd4ce5eb.tar.bz2 |
Blackfin: fix linker scripts to work with --gc-sections
Make sure all .text sections get pulled in and the entry point is properly
referenced so they don't get discarded when linking with --gc-sections.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'board/bf533-ezkit/u-boot.lds.S')
-rw-r--r-- | board/bf533-ezkit/u-boot.lds.S | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/board/bf533-ezkit/u-boot.lds.S b/board/bf533-ezkit/u-boot.lds.S index 70764ac..da16726 100644 --- a/board/bf533-ezkit/u-boot.lds.S +++ b/board/bf533-ezkit/u-boot.lds.S @@ -28,6 +28,8 @@ #include <config.h> #include <asm/blackfin.h> #undef ALIGN +#undef ENTRY +#undef bfin /* If we don't actually load anything into L1 data, this will avoid * a syntax error. If we do actually load something into L1 data, @@ -50,11 +52,12 @@ MEMORY l1_data : ORIGIN = L1_DATA_B_SRAM, LENGTH = L1_DATA_B_SRAM_SIZE } +ENTRY(_start) SECTIONS { .text : { - cpu/blackfin/start.o (.text) + cpu/blackfin/start.o (.text .text.*) #ifdef ENV_IS_EMBEDDED /* WARNING - the following is hand-optimized to fit within @@ -63,20 +66,20 @@ SECTIONS * it linked after the configuration sector. */ - cpu/blackfin/traps.o (.text) - cpu/blackfin/interrupt.o (.text) - cpu/blackfin/serial.o (.text) - common/dlmalloc.o (.text) - lib_generic/crc32.o (.text) - lib_generic/zlib.o (.text) - board/bf533-ezkit/bf533-ezkit.o (.text) + cpu/blackfin/traps.o (.text .text.*) + cpu/blackfin/interrupt.o (.text .text.*) + cpu/blackfin/serial.o (.text .text.*) + common/dlmalloc.o (.text .text.*) + lib_generic/crc32.o (.text .text.*) + lib_generic/zlib.o (.text .text.*) + board/bf533-ezkit/bf533-ezkit.o (.text .text.*) . = DEFINED(env_offset) ? env_offset : .; - common/env_embedded.o (.text) + common/env_embedded.o (.text .text.*) #endif __initcode_start = .; - cpu/blackfin/initcode.o (.text) + cpu/blackfin/initcode.o (.text .text.*) __initcode_end = .; *(.text .text.*) |