AnsweredAssumed Answered

What purpose does __libc_init_array() in library libc.a serve?

Question asked by Amer Naseem on Jun 18, 2019
Latest reply on Jun 18, 2019 by Erich Styger

My development environment is MCUXpresso IDE.  My microcontroller is LPC11E68.  The reset entry point of my code calls __libc_init_array().  This function is in libc.a.  We are not provided with source code for this function?  Map files gives following information:



./LPC_Code/cr_startup_lpc11e6x.o (__libc_init_array)


Why is this function called at startup?  Is there documentation that explains why this function needs to be called in reset initialization code?


I'm using NewLib (Nohost) library.