This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

__init_array_start placed in RAM?

Hi, I'm just debugging, why global C++ object c'tor are not called when using gcc/newlib. I stombled over the fact that within the linker script, provided with the sdk 8.2, the .init_array sections of the objects are placed into RAM.

Why is this so? Why not placing this vector into flash?

kind regards, Torsten

Related