<?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: How to make position independent code with S32DS ? in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/1292107#M7582</link>
    <description>&lt;P&gt;There is a new blog on mcuoneclipse.com which covers this topic in great detail:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2021/06/05/position-independent-code-with-gcc-for-arm-cortex-m/" target="_self"&gt;Position-Independent Code With GCC for arm Cortex M&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 19:15:03 GMT</pubDate>
    <dc:creator>mikedoidge</dc:creator>
    <dc:date>2021-06-14T19:15:03Z</dc:date>
    <item>
      <title>How to make position independent code with S32DS ?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/853733#M4279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My question is How to make position independent code with S32DS? The compliler is arm-none-eabi-gcc. &lt;BR /&gt;I tried to add the compilation parameters "-fpie" , But the program that complied with "-fpie"&lt;BR /&gt;always jmp to default isr when assign value to global variables.&lt;BR /&gt;I also tried to add both compilation parameters "-fpie" and linker parameters "-pie", But&lt;BR /&gt;it will cause linker errors as shown below&lt;BR /&gt;-------------------------------------------------------------------&lt;BR /&gt;section `.interp' will not fit in region `m_flash_config'&lt;BR /&gt;section .interp loaded at [00004410,00004420] overlaps section .text loaded at [00004410,0000593b]&lt;BR /&gt;region `m_flash_config' overflowed by 1280 bytes&lt;BR /&gt;-------------------------------------------------------------------&lt;BR /&gt;May be modify the linker script file and add the section ".interp" will solve this problem ?&lt;BR /&gt;But will there be other potential problems?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 02:07:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/853733#M4279</guid>
      <dc:creator>wangtao8899</dc:creator>
      <dc:date>2019-01-23T02:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to make position independent code with S32DS ?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/853734#M4280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;there have been some issues observed with position independent code/executable compiler switch.&lt;/P&gt;&lt;P&gt;Please see the posts below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/1015654"&gt;https://community.nxp.com/message/1015654&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/336158"&gt;kinetis with fPIC (position independent code)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, could you possibly describe more in the detail what is your goal? perhaps there are other ways to achieve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2019 09:52:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/853734#M4280</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2019-01-23T09:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make position independent code with S32DS ?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/853735#M4281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have posted a new example which demonstrates the implementation of position independent code. Please see&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-345595"&gt;https://community.nxp.com/docs/DOC-345595&lt;/A&gt;&amp;nbsp;for details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 21:50:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/853735#M4281</guid>
      <dc:creator>mikedoidge</dc:creator>
      <dc:date>2020-02-11T21:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to make position independent code with S32DS ?</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/1292107#M7582</link>
      <description>&lt;P&gt;There is a new blog on mcuoneclipse.com which covers this topic in great detail:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2021/06/05/position-independent-code-with-gcc-for-arm-cortex-m/" target="_self"&gt;Position-Independent Code With GCC for arm Cortex M&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 19:15:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-make-position-independent-code-with-S32DS/m-p/1292107#M7582</guid>
      <dc:creator>mikedoidge</dc:creator>
      <dc:date>2021-06-14T19:15:03Z</dc:date>
    </item>
  </channel>
</rss>

