summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board
diff options
context:
space:
mode:
authorIngo Albrecht <prom@berlin.ccc.de>2010-07-16 00:34:07 +0200
committerIngo Albrecht <prom@berlin.ccc.de>2010-07-20 14:41:20 +0200
commitf624168172fd44d2b1e5258d2819797f13c67991 (patch)
tree7d35bc3100a8d2f1c5b86816e6f09d8f0865547d /src/target/firmware/board
parentbb886b7f2880cad1b300e2ce069103a82c2229d4 (diff)
firmware: fixed linkage of ctors and dtors for flash images
Diffstat (limited to 'src/target/firmware/board')
-rw-r--r--src/target/firmware/board/compal_e88/loader.lds6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/target/firmware/board/compal_e88/loader.lds b/src/target/firmware/board/compal_e88/loader.lds
index fec71dcc..03b4d032 100644
--- a/src/target/firmware/board/compal_e88/loader.lds
+++ b/src/target/firmware/board/compal_e88/loader.lds
@@ -62,7 +62,6 @@ SECTIONS
PROVIDE(_text_end = ADDR(.text) + SIZEOF(.text));
/* constructor pointers */
- . = ALIGN(4);
.ctors : {
/* ctor count */
LONG(SIZEOF(.ctors) / 4 - 2)
@@ -70,12 +69,11 @@ SECTIONS
KEEP(*(SORT(.ctors)))
/* end of list */
LONG(0)
- }
+ } > FLASH
PROVIDE(_ctor_start = LOADADDR(.ctors));
PROVIDE(_ctor_end = LOADADDR(.ctors) + SIZEOF(.ctors));
/* destructor pointers */
- . = ALIGN(4);
.dtors : {
/* dtor count */
LONG(SIZEOF(.dtors) / 4 - 2)
@@ -83,7 +81,7 @@ SECTIONS
KEEP(*(SORT(.dtors)))
/* end of list */
LONG(0)
- }
+ } > FLASH
PROVIDE(_dtor_start = LOADADDR(.dtors));
PROVIDE(_dtor_end = LOADADDR(.dtors) + SIZEOF(.dtors));