summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board/compal_e88/flash.lds
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2013-12-29 20:33:26 +0100
committerSylvain Munaut <tnt@246tNt.com>2014-02-04 18:32:02 +0100
commit07ce6faff389dcaedc9b11ee4245d2a310f7612b (patch)
treea446619dc2c8c60b2120e714243abc729478ba8e /src/target/firmware/board/compal_e88/flash.lds
parent44649961dd678ce5b1bb8fd8e59719acd9052d2e (diff)
fw: tell linker to add init_array to ctor sectionsylvain/burst_ind
Starting with version 4.8, gcc places functions with __attribute__ ((constructor)) in .init_array instead of .ctors by default. This broke firmware images built with gcc >= 4.8. Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/target/firmware/board/compal_e88/flash.lds')
-rw-r--r--src/target/firmware/board/compal_e88/flash.lds1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/firmware/board/compal_e88/flash.lds b/src/target/firmware/board/compal_e88/flash.lds
index cf0f6a41..67d727ff 100644
--- a/src/target/firmware/board/compal_e88/flash.lds
+++ b/src/target/firmware/board/compal_e88/flash.lds
@@ -54,6 +54,7 @@ SECTIONS
LONG(SIZEOF(.ctors) / 4 - 2)
/* ctor pointers */
KEEP(*(SORT(.ctors)))
+ KEEP(*(SORT(.init_array)))
/* end of list */
LONG(0)
} > FLASH