This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
What is .init_array and how does it affext an arm-eabi build for bare metal?
- From: Rob Emanuele <poorarm at shoreis dot com>
- To: binutils at sourceware dot org
- Date: Thu, 22 Jan 2009 16:52:11 -0800
- Subject: What is .init_array and how does it affext an arm-eabi build for bare metal?
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