<?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>Kinetis Design Studio中的主题 Re: ARM.exidx OVERLAP issue</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558018#M7166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to link a library to a project, go to C/C++ Build &amp;gt; Settings &amp;gt; Cross ARM C++ Linker &amp;gt; Libraries and specify the precompiled library to be used and its path.&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2855i4159DFBAA7AB7C83/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the library .a or .lib file doesn't include address information, after linking it to project, the linker will allocate range of memory address to library code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you still have overlap error with above setting, So I wonder your library defines some constant variable in the exact address? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 08:26:45 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2016-09-01T08:26:45Z</dc:date>
    <item>
      <title>ARM.exidx OVERLAP issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558015#M7163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;When adding a foreign library we now get a linker error due to code overlapping with the reset vector (code linker to start at 0x5080 due to boot loader at 0x0000).&lt;/P&gt;&lt;P&gt;This is the linker error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: section .ARM loaded at [00005080,00005087] overlaps section .vectors loaded at [00005080,00005087]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and this is the map file showing that &lt;EM&gt;libgcc.a&lt;/EM&gt; is locating something there:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.ARM.exidx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00005080&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x8&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;.ARM.exidx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00005080&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x8 c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/armv6-m\libgcc.a(_divdi3.o)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;.ARM.exidx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00005088&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0 c:/freescale/kds_3.0.0/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/armv6-m\libgcc.a(_udivdi3.o)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x8 (size before relaxing)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to various sources this has something to do with stack-unwinding debug support but various suggestions as to how it may be disabled have not had any effect.&lt;/P&gt;&lt;P&gt;In the linker script file there is a section:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ARM.extab&amp;nbsp;&amp;nbsp; : { *(.ARM.extab* .gnu.linkonce.armextab.*) } &amp;gt;FLASH&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .ARM : {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __exidx_start = .;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.ARM.exidx*)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __exidx_end = .;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } &amp;gt;FLASH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but the result is the same with or without this. It looks to be correctly telling the linker to put whatever this is into the flash:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MEMORY&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH (rx) : ORIGIN = 0x00005080, LENGTH = 0x00040000-0x5080&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SRAM (wx)&amp;nbsp; : ORIGIN = 0x1fffe0c0, LENGTH = 0x00008000-0xc0&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but why on earth is it overlapping with other things in this single case?&lt;/P&gt;&lt;P&gt;Anyone know anything about this and how to get rid of it....?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 02:07:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558015#M7163</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-08-25T02:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: ARM.exidx OVERLAP issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558016#M7164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;From my understanding,you want to merge another app in your project but overlap with current code in same memory address. correct?&lt;/P&gt;&lt;P&gt;I this case, I suggest you read this document, maybe it can help you&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-328202"&gt;https://community.nxp.com/docs/DOC-328202&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 08:37:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558016#M7164</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-08-29T08:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: ARM.exidx OVERLAP issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558017#M7165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;No, this has nothing to do with merging two application - just linking in a library.&lt;/P&gt;&lt;P&gt;In the meantime I have maybe been able to force the section to not overlap with other addresses by doing&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; __ARM_start__ = ALIGN(__data_load_end__ , 4);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; .ARM.exidx ALIGN(__data_load_end__ , 4) :&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __exidx_start = .;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *(.ARM.exidx* .gnu.linkonce.armexidx.*)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __exidx_end = .;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp; __ARM_end__ = __exidx_start + SIZEOF(.ARM.exidx);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but the linked library is not yet operating correctly (but likely to be due to its use of malloc())..&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 10:37:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558017#M7165</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-08-29T10:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: ARM.exidx OVERLAP issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558018#M7166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to link a library to a project, go to C/C++ Build &amp;gt; Settings &amp;gt; Cross ARM C++ Linker &amp;gt; Libraries and specify the precompiled library to be used and its path.&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/2855i4159DFBAA7AB7C83/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the library .a or .lib file doesn't include address information, after linking it to project, the linker will allocate range of memory address to library code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you still have overlap error with above setting, So I wonder your library defines some constant variable in the exact address? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jennie Zhang&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 08:26:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558018#M7166</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2016-09-01T08:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: ARM.exidx OVERLAP issue</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558019#M7167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is not that the foreign library can't be added or that the foreign library has code that has fixed addresses. It is that the library in question uses other library calls in the standard librariy (libggc.a) which make reference to something in this area (reading up on the area it is said to have something to do with stack unwinding of C++ exceptions or for debugging).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why the section is being located to overlap with other sections by the linker since I also can not believe that library code is trying to force a specific location in memory.&lt;/P&gt;&lt;P&gt;I'm still hoping that the workaround to explicity tell the linker to put the area after others will prove to be suitable....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 12:20:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/ARM-exidx-OVERLAP-issue/m-p/558019#M7167</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-09-01T12:20:37Z</dc:date>
    </item>
  </channel>
</rss>

