<?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 How to add directory name in linker script? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-add-directory-name-in-linker-script/m-p/1146155#M57977</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using MCUXpresso IDE to develop one project, currently we need relocat the flash to two area, i add one section in Debug.lg file as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;.BCodeArea : ALIGN(4)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Driver_Code_Level*.o(.text .text*)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Driver_Code_Level*.o(.rodata .rodata.* .constdata .constdata.*)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* cannot linker successfully&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Driver_Code_Level/*.o(.text .text*)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Driver_Code_Level/*.o(.rodata .rodata.* .constdata .constdata.*)&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;} &amp;gt; FLASH_AREA_B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Driver_Code_Level is one directory, It is failed when i add one ‘/’ in this section, Do u know how to add some charachar there to indicate that it is a directory?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Sep 2020 06:50:25 GMT</pubDate>
    <dc:creator>caozj</dc:creator>
    <dc:date>2020-09-04T06:50:25Z</dc:date>
    <item>
      <title>How to add directory name in linker script?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-add-directory-name-in-linker-script/m-p/1146155#M57977</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using MCUXpresso IDE to develop one project, currently we need relocat the flash to two area, i add one section in Debug.lg file as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;.BCodeArea : ALIGN(4)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Driver_Code_Level*.o(.text .text*)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Driver_Code_Level*.o(.rodata .rodata.* .constdata .constdata.*)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* cannot linker successfully&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Driver_Code_Level/*.o(.text .text*)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Driver_Code_Level/*.o(.rodata .rodata.* .constdata .constdata.*)&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;} &amp;gt; FLASH_AREA_B&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Driver_Code_Level is one directory, It is failed when i add one ‘/’ in this section, Do u know how to add some charachar there to indicate that it is a directory?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 06:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-add-directory-name-in-linker-script/m-p/1146155#M57977</guid>
      <dc:creator>caozj</dc:creator>
      <dc:date>2020-09-04T06:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to add directory name in linker script?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-add-directory-name-in-linker-script/m-p/1147700#M57980</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'/' is the division operator in a linker script.&lt;BR /&gt;&lt;BR /&gt;You could try '//' or if on Windows '\\'.&lt;BR /&gt;&lt;BR /&gt;However I expect the answer is, it can't be done at the linker level.&lt;BR /&gt;The assembly of the object files (.o) and their paths take place at the Makefile level.&lt;/P&gt;&lt;P&gt;Here is the linker documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sourceware.org/binutils/docs/ld/Scripts.html" target="_blank"&gt;https://sourceware.org/binutils/docs/ld/Scripts.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 12:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-add-directory-name-in-linker-script/m-p/1147700#M57980</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2020-09-04T12:06:14Z</dc:date>
    </item>
  </channel>
</rss>

