<?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>Classic/Legacy CodeWarriorのトピックRe: Problem with -nodead option</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179054#M4012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The -[no]dead[strip]&amp;nbsp;&amp;nbsp;option is used to enable/disable the&amp;nbsp;dead-stripping of unused code.&lt;/DIV&gt;&lt;DIV&gt;By default the dead-stripping is enable. to reduce the size of code.&lt;/DIV&gt;&lt;DIV&gt;If you disable it and linked a library to your application, all libraries functions will be included in your application.&lt;/DIV&gt;&lt;DIV&gt;This is the case on your side as you're using the MSL C 56800E.lib library.&lt;/DIV&gt;&lt;DIV&gt;You disable the dead stripping feature and got some linker errors.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The problem is that the library refers to some functions which one were removed of your application with the dead stripping option.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You have 2 solutions:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;- implement the functions,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;- use the dead stipping option.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this will help you.&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Jan 2008 17:47:40 GMT</pubDate>
    <dc:creator>trytohelp</dc:creator>
    <dc:date>2008-01-14T17:47:40Z</dc:date>
    <item>
      <title>Problem with -nodead option</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179053#M4011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Dear all,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I get the error when I use "-nodead" option in mwld56800e&lt;/DIV&gt;&lt;DIV&gt;"### mwld56800e.exe Linker Error:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Undefined : "F_ExitProcess"&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Referenced from "F__exit" in MSL C 56800E.lib&lt;BR /&gt;### mwld56800e.exe Linker Error:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Undefined : "F__ieee754_log"&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Referenced from "F__ieee754_acosh" in MSL C 56800E.lib&lt;BR /&gt;### mwld56800e.exe Linker Error:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Undefined : "Ffma"&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Referenced from "Ffmal" in MSL C 56800E.lib&lt;BR /&gt;### mwld56800e.exe Linker Error:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Undefined : "Fstrtof"&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Referenced from "Fnanf" in MSL C 56800E.lib&lt;BR /&gt;### mwld56800e.exe Linker Alert:&lt;BR /&gt;#&amp;nbsp;&amp;nbsp; Link failed."&lt;/DIV&gt;&lt;DIV&gt;mwld56800e -m Finit_sim_ -g&amp;nbsp; -map -nodead -l"Runtime 56800E.Lib" -l"MSL C 56800E&lt;BR /&gt;.lib" "sim_sdm_linker.cmd"&lt;/DIV&gt;&lt;DIV&gt;It is ok when I didn't use nodead option. Could you please help me?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks ,&lt;/DIV&gt;&lt;DIV&gt;haluong&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 10:46:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179053#M4011</guid>
      <dc:creator>haluong</dc:creator>
      <dc:date>2008-01-14T10:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with -nodead option</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179054#M4012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The -[no]dead[strip]&amp;nbsp;&amp;nbsp;option is used to enable/disable the&amp;nbsp;dead-stripping of unused code.&lt;/DIV&gt;&lt;DIV&gt;By default the dead-stripping is enable. to reduce the size of code.&lt;/DIV&gt;&lt;DIV&gt;If you disable it and linked a library to your application, all libraries functions will be included in your application.&lt;/DIV&gt;&lt;DIV&gt;This is the case on your side as you're using the MSL C 56800E.lib library.&lt;/DIV&gt;&lt;DIV&gt;You disable the dead stripping feature and got some linker errors.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The problem is that the library refers to some functions which one were removed of your application with the dead stripping option.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;You have 2 solutions:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;- implement the functions,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;- use the dead stipping option.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Hope this will help you.&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2008 17:47:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179054#M4012</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2008-01-14T17:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with -nodead option</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179055#M4013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Dear Pascal,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your reply early. I created the "DSP56800X New Project Wizard"/simulators. And I used smm linker,&amp;nbsp; Disable&amp;nbsp; Deadstripping in linker panel setting. It has the error:&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;"Link Error&amp;nbsp;&amp;nbsp; : Undefined : "F_ExitProcess"&lt;BR /&gt;Referenced from "F__exit" in MSL C 56800E.lib&lt;BR /&gt;&lt;BR /&gt;Link Error&amp;nbsp;&amp;nbsp; : Undefined : "F__ieee754_log"&lt;BR /&gt;Referenced from "F__ieee754_acosh" in MSL C 56800E.lib&lt;BR /&gt;&lt;BR /&gt;Link Error&amp;nbsp;&amp;nbsp; : Undefined : "Ffma"&lt;BR /&gt;Referenced from "Ffmal" in MSL C 56800E.lib&lt;BR /&gt;&lt;BR /&gt;Link Error&amp;nbsp;&amp;nbsp; : Undefined : "Fstrtof"&lt;BR /&gt;Referenced from "Fnanf" in MSL C 56800E.lib&lt;BR /&gt;&lt;BR /&gt;Link failed.&lt;BR /&gt;"&lt;/DIV&gt;&lt;DIV&gt;I try to pass these undefined symbol in -force_active, it&amp;nbsp;makes&amp;nbsp;the application is corrupt as the attached file. &amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;haluong&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by haluong on &lt;SPAN class="date_text"&gt;2008-01-15&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:59 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 10:58:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179055#M4013</guid>
      <dc:creator>haluong</dc:creator>
      <dc:date>2008-01-15T10:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with -nodead option</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179056#M4014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Force active must be used to say to the linker to keep a module.&lt;/DIV&gt;&lt;DIV&gt;If you use the deadstripping option you don't need&amp;nbsp;Force active.&lt;/DIV&gt;&lt;DIV&gt;Force Active:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;FONT face="Helvetica" size="1"&gt;Directs the linker to include symbols in the link, even if those symbols are not referenced.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Helvetica" size="1"&gt;&amp;nbsp;Makes symbols immune to deadstripping.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Helvetica" size="1"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;To fix the linker error you must define the functions.&lt;/DIV&gt;&lt;DIV&gt;For instance:&lt;/DIV&gt;&lt;DIV&gt;"Link Error&amp;nbsp;&amp;nbsp; : Undefined : "F_ExitProcess"&lt;BR /&gt;Referenced from "F__exit" in MSL C 56800E.lib&lt;/DIV&gt;&lt;DIV&gt;In the abort_exit.h this function is called:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;_MSL_IMP_EXP_C void _MSL_CDECL _ExitProcess(void) _MSL_CANT_THROW;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;To fix this error you must define this function:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;void&amp;nbsp; _ExitProcess(void)&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; asm (nop);&amp;nbsp;&lt;BR /&gt;&amp;nbsp;}&lt;BR /&gt;This is the same for other errors.&lt;/DIV&gt;&lt;DIV&gt;See an example attached with all linker errors fixed.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Pascal&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2008 20:26:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-with-nodead-option/m-p/179056#M4014</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2008-01-15T20:26:16Z</dc:date>
    </item>
  </channel>
</rss>

