What is .init_array and how does it affext an arm-eabi build for bare metal?

Rob Emanuele poorarm@shoreis.com
Fri Jan 23 00:52:00 GMT 2009


Hi all,

I am building an application for a Cortex-m3 processor.  When built
the map file and executable show a section called .init_array located
in the chip's main RAM.  This section is not in my linker script.
What is this section for?  From what I can tell it is stdc++ related
but I could use more information.  The fact that this ends up in my
main RAM concerns me as it will be uninitialized upon reset.  If I was
to add it to my linker script where should it live?

Thanks for any information you could provide!

--Rob



More information about the Binutils mailing list