<?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>topic Re: bss_init and data_init doesn't work with -fPIC in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568143#M19196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Apr 03 06:46:30 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;To load and run position independent code (PIC) you need a loader that will&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- read the image&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- set up the GOT &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- initialise the registers (normally R9)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- jump into your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PIC is not designed to be run standalone. We do not support the use of PIC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:27:03 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:27:03Z</dc:date>
    <item>
      <title>bss_init and data_init doesn't work with -fPIC</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568140#M19193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pgr on Thu Apr 03 05:33:03 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have then realized that the functions bss_init() and data_init() from cr_startup are never called when compiling the application using -fPIC option. The variables __data_section_table, __data_section_table_end, __bss_section_table and __bss_section_table_end are all set to 0. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the expected behavior ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:27:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568140#M19193</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: bss_init and data_init doesn't work with -fPIC</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568141#M19194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Apr 03 05:53:37 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;This is expected as the Managed Linker Scripts do not support position independent code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:27:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568141#M19194</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: bss_init and data_init doesn't work with -fPIC</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568142#M19195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pgr on Thu Apr 03 06:23:35 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok thanks for your quick answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is really strange is that the debugger see the right (expected) values when debugging... but the code that run see 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568142#M19195</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: bss_init and data_init doesn't work with -fPIC</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568143#M19196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Thu Apr 03 06:46:30 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;To load and run position independent code (PIC) you need a loader that will&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- read the image&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- set up the GOT &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- initialise the registers (normally R9)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- jump into your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PIC is not designed to be run standalone. We do not support the use of PIC.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/bss-init-and-data-init-doesn-t-work-with-fPIC/m-p/568143#M19196</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:27:03Z</dc:date>
    </item>
  </channel>
</rss>

