summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board
diff options
context:
space:
mode:
authorIngo Albrecht2010-07-16 00:34:07 +0200
committerIngo Albrecht2010-07-20 14:41:20 +0200
commitf624168172fd44d2b1e5258d2819797f13c67991 (patch)
tree7d35bc3100a8d2f1c5b86816e6f09d8f0865547d /src/target/firmware/board
parentfirmware: untabify linker scripts. (diff)
downloadosmocom-f624168172fd44d2b1e5258d2819797f13c67991.tar.gz
osmocom-f624168172fd44d2b1e5258d2819797f13c67991.tar.xz
osmocom-f624168172fd44d2b1e5258d2819797f13c67991.zip
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 fec71dc..03b4d03 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));