<?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>S32 Design StudioのトピックRe: how to specify object file (*.o) address</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-specify-object-file-o-address/m-p/1550305#M9379</link>
    <description>&lt;P&gt;Hi &lt;SPAN&gt;Stan&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;its work&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;ttikalit&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 10:53:21 GMT</pubDate>
    <dc:creator>ttikalit</dc:creator>
    <dc:date>2022-11-08T10:53:21Z</dc:date>
    <item>
      <title>how to specify object file (*.o) address</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-specify-object-file-o-address/m-p/1537491#M9329</link>
      <description>&lt;P&gt;I want to put the application and driver code into different addresses so that I can split the hexadecimal file into two complete blocks&lt;/P&gt;&lt;P&gt;When I use IAR, in the *.icf file, using the following code, I can specify the link address of the file&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;place at address mem:0x12345678 {section .text object a.o}&lt;/P&gt;&lt;P&gt;Is there a way to do this in s32ds, s32k146&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 03:25:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-specify-object-file-o-address/m-p/1537491#M9329</guid>
      <dc:creator>ttikalit</dc:creator>
      <dc:date>2022-10-14T03:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify object file (*.o) address</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-specify-object-file-o-address/m-p/1546445#M9339</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please have a look here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Execute-a-library-function-from-RAM-memory-using-GNU-build/ta-p/1106568" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Execute-a-library-function-from-RAM-memory-using-GNU-build/ta-p/1106568&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;you can force to place a certain segment from specific object file into a different memory region (example uses a object file "&lt;EM&gt;lib_a-memcpy-stub.o&lt;/EM&gt;" from a static library):&lt;/P&gt;
&lt;P&gt;1) exclude the object file section from&amp;nbsp; the default section e.g. (.text):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt; .text :
  {
    . = ALIGN(4);
     /* Exclude file(s) from NewLib libc.a from .text.* section - this replaces .text*  */     
     *(EXCLUDE_FILE (*libc.a:lib_a-memcpy-stub.o) .text*)   
 
    *(.rodata)               /* .rodata sections (constants, strings, etc.) */
    *(.rodata*)              /* .rodata* sections (constants, strings, etc.) */
    *(.glue_7)               /* glue arm to thumb code */
    *(.glue_7t)              /* glue thumb to arm code */
    *(.eh_frame)
    KEEP (*(.init))
    KEEP (*(.fini))
    . = ALIGN(4);
  } &amp;gt; m_text‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) place the object file section into a new placement rule:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;.my_text:
{
    *libc.a:lib_a-memcpy-stub.o (.text*)   /* add memcpy from the NewLib library here*/ 
 
  } &amp;gt; m_my_text /* my new memory region 0x12345678*/&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if your object file is directly compiled from the source code you can replace:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;*libc.a:lib_a-memcpy-stub.o (.text*)&lt;/LI-CODE&gt;
&lt;P&gt;with:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;*lib_a-memcpy-stub.o (.text*)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 18:16:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-specify-object-file-o-address/m-p/1546445#M9339</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2022-10-31T18:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to specify object file (*.o) address</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/how-to-specify-object-file-o-address/m-p/1550305#M9379</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Stan&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;its work&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;ttikalit&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 10:53:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/how-to-specify-object-file-o-address/m-p/1550305#M9379</guid>
      <dc:creator>ttikalit</dc:creator>
      <dc:date>2022-11-08T10:53:21Z</dc:date>
    </item>
  </channel>
</rss>

