<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>MCUXpresso General中的主题 Re: What purpose does __libc_init_array() in library libc.a serve?</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/What-purpose-does-libc-init-array-in-library-libc-a-serve/m-p/940430#M2290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This serves calling constructors and other library initialization which is necessary before calling main. There is a good description about this as well on &lt;A class="link-titled" href="https://stackoverflow.com/questions/15265295/understanding-the-libc-init-array" title="https://stackoverflow.com/questions/15265295/understanding-the-libc-init-array"&gt;gcc - understanding the __libc_init_array - Stack Overflow&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2019 18:13:07 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2019-06-18T18:13:07Z</dc:date>
    <item>
      <title>What purpose does __libc_init_array() in library libc.a serve?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/What-purpose-does-libc-init-array-in-library-libc-a-serve/m-p/940429#M2289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;My development environment is MCUXpresso IDE.&amp;nbsp; My microcontroller is LPC11E68.&amp;nbsp; The reset entry point of my code calls __libc_init_array().&amp;nbsp; This function is in libc.a.&amp;nbsp; We are not provided with source code for this function?&amp;nbsp; Map files gives following information:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;c:/&lt;SPAN style="text-decoration: underline;"&gt;nxp&lt;/SPAN&gt;/mcuxpressoide_10.2.1_795/&lt;SPAN style="text-decoration: underline;"&gt;ide&lt;/SPAN&gt;/tools/bin/../&lt;SPAN style="text-decoration: underline;"&gt;lib&lt;/SPAN&gt;/&lt;SPAN style="text-decoration: underline;"&gt;gcc&lt;/SPAN&gt;/arm-none-&lt;SPAN style="text-decoration: underline;"&gt;eabi&lt;/SPAN&gt;/7.2.1/../../../../arm-none-&lt;SPAN style="text-decoration: underline;"&gt;eabi&lt;/SPAN&gt;/&lt;SPAN style="text-decoration: underline;"&gt;lib&lt;/SPAN&gt;/thumb/v6-m\libc.a(lib_a-init.o)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;./LPC_Code/cr_startup_lpc11e6x.o (__libc_init_array)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;Why is this function called at startup?&amp;nbsp; Is there documentation that explains why this function needs to be called in reset initialization code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 22px;"&gt;I'm using NewLib (Nohost) library.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 15:40:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/What-purpose-does-libc-init-array-in-library-libc-a-serve/m-p/940429#M2289</guid>
      <dc:creator>anaseem</dc:creator>
      <dc:date>2019-06-18T15:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: What purpose does __libc_init_array() in library libc.a serve?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/What-purpose-does-libc-init-array-in-library-libc-a-serve/m-p/940430#M2290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This serves calling constructors and other library initialization which is necessary before calling main. There is a good description about this as well on &lt;A class="link-titled" href="https://stackoverflow.com/questions/15265295/understanding-the-libc-init-array" title="https://stackoverflow.com/questions/15265295/understanding-the-libc-init-array"&gt;gcc - understanding the __libc_init_array - Stack Overflow&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 18:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/What-purpose-does-libc-init-array-in-library-libc-a-serve/m-p/940430#M2290</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2019-06-18T18:13:07Z</dc:date>
    </item>
  </channel>
</rss>

