Commit 013cabe6 authored by Sandeep Mistry's avatar Sandeep Mistry

Add KEEP to init_array in common .ld file

To ensure global constructors are call. See:
http://stackoverflow.com/questions/6343348/global-constructor-call-not-i
n-init-array-section
parent 06e8ac6d
......@@ -107,8 +107,8 @@ SECTIONS
. = ALIGN(4);
/* init data */
PROVIDE_HIDDEN (__init_array_start = .);
*(SORT(.init_array.*))
*(.init_array)
KEEP(*(SORT(.init_array.*)))
KEEP(*(.init_array))
PROVIDE_HIDDEN (__init_array_end = .);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment