<?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>CodeWarrior for MCUのトピックLink against libgcc in CodeWarrior</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-against-libgcc-in-CodeWarrior/m-p/587272#M13318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using CodeWarrior 5.9 for PowerPC.&amp;nbsp; My target is the MPC5554.&amp;nbsp; I have some object files that I need to include in my bare metal project which were compiled using GCC, which means that they need to be linked against libgcc.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried simply adding the libgcc.a static library from the correct GCC cross compiler, which CodeWarrior seems to correctly identify as a static library.&amp;nbsp; However, when I try to link, it gives me the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;internal linker error: File: 'ELF_Linker.c' Line: 4878.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried compiling the source for libgcc to object files and including the ones I need as source in my project.&amp;nbsp; This will link, or at least CodeWarrior does not throw errors.&amp;nbsp; However, the executable does not work, and fails to make it to user code from the initialization routines.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to include static libraries from GCC when linking in CodeWarrior?&amp;nbsp; What does the internal error I am getting mean?&amp;nbsp; Has anyone ever linked against libgcc in CodeWarrior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2016 16:20:35 GMT</pubDate>
    <dc:creator>seanmkauffman</dc:creator>
    <dc:date>2016-06-29T16:20:35Z</dc:date>
    <item>
      <title>Link against libgcc in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-against-libgcc-in-CodeWarrior/m-p/587272#M13318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using CodeWarrior 5.9 for PowerPC.&amp;nbsp; My target is the MPC5554.&amp;nbsp; I have some object files that I need to include in my bare metal project which were compiled using GCC, which means that they need to be linked against libgcc.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried simply adding the libgcc.a static library from the correct GCC cross compiler, which CodeWarrior seems to correctly identify as a static library.&amp;nbsp; However, when I try to link, it gives me the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;internal linker error: File: 'ELF_Linker.c' Line: 4878.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried compiling the source for libgcc to object files and including the ones I need as source in my project.&amp;nbsp; This will link, or at least CodeWarrior does not throw errors.&amp;nbsp; However, the executable does not work, and fails to make it to user code from the initialization routines.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to include static libraries from GCC when linking in CodeWarrior?&amp;nbsp; What does the internal error I am getting mean?&amp;nbsp; Has anyone ever linked against libgcc in CodeWarrior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 16:20:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-against-libgcc-in-CodeWarrior/m-p/587272#M13318</guid>
      <dc:creator>seanmkauffman</dc:creator>
      <dc:date>2016-06-29T16:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Link against libgcc in CodeWarrior</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-against-libgcc-in-CodeWarrior/m-p/587273#M13319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sean,&lt;/P&gt;&lt;P&gt;Seems you are using quite old version of the compiler.&lt;/P&gt;&lt;P&gt;I'd suggest you to try to use the latest version of e200 compiler. e.g. the one from CW for MCUs v10.6.&lt;/P&gt;&lt;P&gt;Anyway I suspect there might be a discrepancy between CW and GCC object code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd recommend to rebuild the library under CW although it should be theoretically possible to link it if they both conform the same eabi (e.g. PPCEABI)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal linker error is a linker crash which may occur due to some unhandled exception occurs while linking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 15:05:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Link-against-libgcc-in-CodeWarrior/m-p/587273#M13319</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2016-08-01T15:05:53Z</dc:date>
    </item>
  </channel>
</rss>

