<?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 Re: How to remove STRTAB and SYMTAB sections from ELF using Codewarrior options. in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2027175#M12977</link>
    <description>&lt;P&gt;Hello, Stanish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your kind reply.&lt;/P&gt;&lt;P&gt;I have a commercial program that removes .strtab and .symtab sections from elf files.&lt;/P&gt;&lt;P&gt;I think the program is similar to the strip program you recommended.&lt;/P&gt;&lt;P&gt;What I would like to know about this topic is if there is an option in the CodeWarrior preferences menu.&lt;/P&gt;&lt;P&gt;I'm trying to download the program (&lt;SPAN&gt;S32DS).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(There are some problems to download the program.. so I need to have some time.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will let you know the test results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2025 02:29:42 GMT</pubDate>
    <dc:creator>Luke_K</dc:creator>
    <dc:date>2025-01-14T02:29:42Z</dc:date>
    <item>
      <title>How to remove STRTAB and SYMTAB sections from ELF using Codewarrior options.</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2023512#M12946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to remove Debug Section (including STRTAB and SYMTAB) in ELF using Codewarrior compile options.&lt;/P&gt;&lt;P&gt;I set to Off for "Generate DWARF Information".&lt;/P&gt;&lt;P&gt;But, ELF still has STRTAB and SYMTAB sections.&lt;/P&gt;&lt;P&gt;Please let me know how to remove STRTAB and SYNTAB from ELF.&lt;/P&gt;&lt;P&gt;Can I use strip ccmd? If possible, let me know how to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Codewarrior Version : Version 11.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 21:55:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2023512#M12946</guid>
      <dc:creator>Luke_K</dc:creator>
      <dc:date>2025-01-07T21:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove STRTAB and SYMTAB sections from ELF using Codewarrior options.</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2026765#M12974</link>
      <description>&lt;P&gt;Hi Luke,&lt;/P&gt;
&lt;P&gt;Thanks for your question. You can indeed control the&amp;nbsp;&lt;SPAN&gt;Off for "Generate DWARF Information" but it leaves string and symbol table in place.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'd suggest you to install S32DS for Power v2.1:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/S32-Design-Studio-for-Power-Architecture-v2-1-Windows-Linux/ta-p/1123875" target="_blank"&gt; https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/S32-Design-Studio-for-Power-Architecture-v2-1-Windows-Linux/ta-p/1123875&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It contains set of binutils:&lt;/P&gt;
&lt;P&gt;"C:\NXP\S32DS_Power_v2.1\S32DS\build_tools\powerpc-eabivle-4_9\bin"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you can try to use strip utility with parameter -s:&lt;/P&gt;
&lt;PRE&gt;C:\NXP\S32DS_Power_v2.1\S32DS\build_tools\powerpc-eabivle-4_9\bin&amp;gt;powerpc-eabivle-strip&lt;BR /&gt;Usage: powerpc-eabivle-strip &amp;lt;option(s)&amp;gt; in-file(s)&lt;BR /&gt;Removes symbols and sections from files&lt;BR /&gt;The options are:&lt;BR /&gt;-I --input-target=&amp;lt;bfdname&amp;gt; Assume input file is in format &amp;lt;bfdname&amp;gt;&lt;BR /&gt;-O --output-target=&amp;lt;bfdname&amp;gt; Create an output file in format &amp;lt;bfdname&amp;gt;&lt;BR /&gt;-F --target=&amp;lt;bfdname&amp;gt; Set both input and output format to &amp;lt;bfdname&amp;gt;&lt;BR /&gt;-p --preserve-dates Copy modified/access timestamps to the output&lt;BR /&gt;-D --enable-deterministic-archives&lt;BR /&gt;Produce deterministic output when stripping archives&lt;BR /&gt;-U --disable-deterministic-archives&lt;BR /&gt;Disable -D behavior (default)&lt;BR /&gt;-R --remove-section=&amp;lt;name&amp;gt; Also remove section &amp;lt;name&amp;gt; from the output&lt;BR /&gt;--remove-relocations &amp;lt;name&amp;gt; Remove relocations from section &amp;lt;name&amp;gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;-s --strip-all Remove all symbol and relocation information&lt;/FONT&gt;&lt;BR /&gt;-g -S -d --strip-debug Remove all debugging symbols &amp;amp; sections&lt;BR /&gt;--strip-dwo Remove all DWO sections&lt;BR /&gt;--strip-unneeded Remove all symbols not needed by relocations&lt;BR /&gt;--only-keep-debug Strip everything but the debug information&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I tried to precess CodeWarrior generated elf for MPC56xx and it seems the sections are not present any more but I lost the ability to dissasemble the resulted elf.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you try on your side if the final elf is still usable(loadable) for you? if not please consider to distribute a binary file e.g. s-record instead if .elf&lt;/P&gt;
&lt;P&gt;This step yould be easily automated by adding strip into postbuild steps:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stanish_0-1736773921521.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319265iE5BD20721C6FE5F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stanish_0-1736773921521.png" alt="stanish_0-1736773921521.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hope it helps.&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 13:12:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2026765#M12974</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2025-01-13T13:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove STRTAB and SYMTAB sections from ELF using Codewarrior options.</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2027175#M12977</link>
      <description>&lt;P&gt;Hello, Stanish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your kind reply.&lt;/P&gt;&lt;P&gt;I have a commercial program that removes .strtab and .symtab sections from elf files.&lt;/P&gt;&lt;P&gt;I think the program is similar to the strip program you recommended.&lt;/P&gt;&lt;P&gt;What I would like to know about this topic is if there is an option in the CodeWarrior preferences menu.&lt;/P&gt;&lt;P&gt;I'm trying to download the program (&lt;SPAN&gt;S32DS).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(There are some problems to download the program.. so I need to have some time.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will let you know the test results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 02:29:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2027175#M12977</guid>
      <dc:creator>Luke_K</dc:creator>
      <dc:date>2025-01-14T02:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove STRTAB and SYMTAB sections from ELF using Codewarrior options.</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2032618#M13002</link>
      <description>I'm not aware of any option in CodeWarrior preferences menu that would strip or avoid creation of SYMTAB and STRTAB sections. Other approach could be just to create separate elf derived from original one, that contains just code sections. But again there is no native support for this in CodeWarrior and you will probably have to use "external" tools.</description>
      <pubDate>Wed, 22 Jan 2025 22:15:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/How-to-remove-STRTAB-and-SYMTAB-sections-from-ELF-using/m-p/2032618#M13002</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2025-01-22T22:15:07Z</dc:date>
    </item>
  </channel>
</rss>

