This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]