<?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 Cannot Debug with Link Time Optimisations On in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-Debug-with-Link-Time-Optimisations-On/m-p/779028#M3028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When turning on the link time optimisations (the &lt;STRONG&gt;-flto&lt;/STRONG&gt; compile option), the debug info in the elf file is being removed for all but the .S files.&amp;nbsp; If you look at the .map file you can also see that it is not listed.&amp;nbsp; Is this a consequence of having&amp;nbsp;this level of optimisations on or is it a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Target Info&lt;/P&gt;&lt;P&gt;* MPC5777C&lt;/P&gt;&lt;P&gt;* Using S32DS V1.2 for Power PC&lt;/P&gt;&lt;P&gt;* Also compiling with max optimizations on, the &lt;STRONG&gt;-O3&lt;/STRONG&gt; switch&lt;/P&gt;&lt;P&gt;* debug compile options are &lt;STRONG&gt;-g3 -gdwarf-4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any questions please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Dec 2017 04:20:01 GMT</pubDate>
    <dc:creator>peterb2</dc:creator>
    <dc:date>2017-12-12T04:20:01Z</dc:date>
    <item>
      <title>Cannot Debug with Link Time Optimisations On</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-Debug-with-Link-Time-Optimisations-On/m-p/779028#M3028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When turning on the link time optimisations (the &lt;STRONG&gt;-flto&lt;/STRONG&gt; compile option), the debug info in the elf file is being removed for all but the .S files.&amp;nbsp; If you look at the .map file you can also see that it is not listed.&amp;nbsp; Is this a consequence of having&amp;nbsp;this level of optimisations on or is it a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Target Info&lt;/P&gt;&lt;P&gt;* MPC5777C&lt;/P&gt;&lt;P&gt;* Using S32DS V1.2 for Power PC&lt;/P&gt;&lt;P&gt;* Also compiling with max optimizations on, the &lt;STRONG&gt;-O3&lt;/STRONG&gt; switch&lt;/P&gt;&lt;P&gt;* debug compile options are &lt;STRONG&gt;-g3 -gdwarf-4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have any questions please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 04:20:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Cannot-Debug-with-Link-Time-Optimisations-On/m-p/779028#M3028</guid>
      <dc:creator>peterb2</dc:creator>
      <dc:date>2017-12-12T04:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Debug with Link Time Optimisations On</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-Debug-with-Link-Time-Optimisations-On/m-p/779029#M3029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add some clarification, I mean that when I compile with the &lt;STRONG&gt;-flto&lt;/STRONG&gt; option, all &lt;EM&gt;.c&lt;/EM&gt; and &lt;EM&gt;.cpp&lt;/EM&gt; files are missing from the&amp;nbsp;debug info section in the elf file but when I remove the &lt;STRONG&gt;-flto&lt;/STRONG&gt; option all those files&amp;nbsp;have debug info.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Dec 2017 23:44:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Cannot-Debug-with-Link-Time-Optimisations-On/m-p/779029#M3029</guid>
      <dc:creator>peterb2</dc:creator>
      <dc:date>2017-12-12T23:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Debug with Link Time Optimisations On</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Cannot-Debug-with-Link-Time-Optimisations-On/m-p/779030#M3030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some explanation at Stackoverflow website. It seems it is not possible to combine -flto with -g parameter. Please check the link below:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/40743372/gcc-lto-appears-to-strip-debugging-symbols" title="https://stackoverflow.com/questions/40743372/gcc-lto-appears-to-strip-debugging-symbols"&gt;gcc LTO appears to strip debugging symbols - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 09:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Cannot-Debug-with-Link-Time-Optimisations-On/m-p/779030#M3030</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2018-02-14T09:43:17Z</dc:date>
    </item>
  </channel>
</rss>

