diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-18 19:54:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-06-18 19:54:37 +0000 |
commit | 753ddb2ffbcd5441c27597a01b58448f10e72f70 (patch) | |
tree | 7630569570becd7558738ff4139c707d4043ab55 /c | |
parent | 2009-06-18 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-753ddb2ffbcd5441c27597a01b58448f10e72f70.tar.bz2 |
2009-06-18 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/linkcmds, startup/linkcmds.csb637: Move .init section from
the front of the executable so the start label has the first
instruction in the executable.
Diffstat (limited to 'c')
-rw-r--r-- | c/src/lib/libbsp/arm/csb337/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/arm/csb337/startup/linkcmds | 16 | ||||
-rw-r--r-- | c/src/lib/libbsp/arm/csb337/startup/linkcmds.csb637 | 10 |
3 files changed, 19 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/arm/csb337/ChangeLog b/c/src/lib/libbsp/arm/csb337/ChangeLog index ee52a66eda..2645bc333c 100644 --- a/c/src/lib/libbsp/arm/csb337/ChangeLog +++ b/c/src/lib/libbsp/arm/csb337/ChangeLog @@ -1,3 +1,9 @@ +2009-06-18 Joel Sherrill <joel.sherrill@OARcorp.com> + + * startup/linkcmds, startup/linkcmds.csb637: Move .init section from + the front of the executable so the start label has the first + instruction in the executable. + 2009-06-15 Joel Sherrill <joel.sherrill@OARcorp.com> * Makefile.am, preinstall.am: Make an RTEMS specific umon.h wrapper diff --git a/c/src/lib/libbsp/arm/csb337/startup/linkcmds b/c/src/lib/libbsp/arm/csb337/startup/linkcmds index e85916756d..abc9658357 100644 --- a/c/src/lib/libbsp/arm/csb337/startup/linkcmds +++ b/c/src/lib/libbsp/arm/csb337/startup/linkcmds @@ -2,7 +2,7 @@ * Cogent CSB337 Linker script * * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com> - * + * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * @@ -58,7 +58,7 @@ SECTIONS /* 256 byte aligned rx buffer header array */ . = ALIGN (0x100); - at91rm9200_emac_rxbuf_hdrs = .; + at91rm9200_emac_rxbuf_hdrs = .; /* 1 transmit buffer, 0x600 size */ . += (0x100); @@ -71,11 +71,6 @@ SECTIONS } > sram - .init : - { - KEEP (*(.init)) - } > sdram /*=0*/ - .text : { _text_start = .; @@ -99,7 +94,7 @@ SECTIONS *(.glue_7) *(.glue_7t) - /* I think these come from the ld docs: */ + /* I think these come from the ld docs: */ ___CTOR_LIST__ = .; LONG((___CTOR_END__ - ___CTOR_LIST__) / 4 - 2) *(.ctors) @@ -115,6 +110,11 @@ SECTIONS PROVIDE (etext = .); } > sdram + .init : + { + KEEP (*(.init)) + } > sdram /*=0*/ + .fini : { KEEP (*(.fini)) diff --git a/c/src/lib/libbsp/arm/csb337/startup/linkcmds.csb637 b/c/src/lib/libbsp/arm/csb337/startup/linkcmds.csb637 index d37855fef3..9cfd3f76c2 100644 --- a/c/src/lib/libbsp/arm/csb337/startup/linkcmds.csb637 +++ b/c/src/lib/libbsp/arm/csb337/startup/linkcmds.csb637 @@ -71,11 +71,6 @@ SECTIONS } > sram - .init : - { - KEEP (*(.init)) - } > sdram /*=0*/ - .text : { _text_start = .; @@ -115,6 +110,11 @@ SECTIONS PROVIDE (etext = .); } > sdram + .init : + { + KEEP (*(.init)) + } > sdram /*=0*/ + .fini : { KEEP (*(.fini)) |