<?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: Remove filenames from compiled binary. in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604632#M3830</link>
    <description>&lt;P&gt;I don't see it with MSVC (17.7.1). But those use .obj instead of .asm, not sure if that matters.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cl *.obj /PDB:"program.pdb" /OUT:"program.exe"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;No filenames in the binary. (Not the exact flags, there are more of them.)&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2024 23:59:12 GMT</pubDate>
    <dc:creator>Mysticial</dc:creator>
    <dc:date>2024-06-06T23:59:12Z</dc:date>
    <item>
      <title>Remove filenames from compiled binary.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1602083#M3811</link>
      <description>&lt;P&gt;When using ICX to link .asm files with /Zi, all the filenames are embedded into binary in plain-text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given a simple project:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Main.asm&lt;/LI&gt;&lt;LI&gt;Test.asm&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I link them as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;icx *.asm -Zi&lt;/LI-CODE&gt;&lt;P&gt;It produces a binary, "Main.exe". But at the end of the binary, the original filenames are visible in plain text.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 316px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/55288i77F054270373C6F5/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I remove these filenames while still producing a working .pdb file?&lt;/P&gt;&lt;P&gt;Other Observations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This does not happen if I compile source files directly into a binary (without a separate linking step).&lt;/LI&gt;&lt;LI&gt;If I rename all the .asm files prior to linking, the resulting .pdb file still works. Thus proving that the filenames are not needed.&lt;/LI&gt;&lt;LI&gt;If I omit the `-Zi` flag, the filenames no longer appear. But this also disables the .pdb file which I need.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there there a compiler flag that will omit the filenames in the binary? Or is the only option to obfuscate the filenames prior to linking? (or perhaps post-compilation binary-modification to overwrite those filenames)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 20:27:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1602083#M3811</guid>
      <dc:creator>Mysticial</dc:creator>
      <dc:date>2024-05-29T20:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove filenames from compiled binary.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604629#M3829</link>
      <description>&lt;P&gt;By using the Microsoft compiler cl, the file names are also in the executable (binary) file. Have you ever seen that the file names are completed omitted under any circumstances ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 23:48:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604629#M3829</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-06-06T23:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove filenames from compiled binary.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604632#M3830</link>
      <description>&lt;P&gt;I don't see it with MSVC (17.7.1). But those use .obj instead of .asm, not sure if that matters.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cl *.obj /PDB:"program.pdb" /OUT:"program.exe"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;No filenames in the binary. (Not the exact flags, there are more of them.)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2024 23:59:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604632#M3830</guid>
      <dc:creator>Mysticial</dc:creator>
      <dc:date>2024-06-06T23:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remove filenames from compiled binary.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604637#M3831</link>
      <description>&lt;P&gt;C:\Users\ayu1\Project14&amp;gt;cl /Zi main.obj test.obj&lt;BR /&gt;Microsoft (R) C/C++ Optimizing Compiler Version 19.39.33523 for x64&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;Microsoft (R) Incremental Linker Version 14.39.33523.0&lt;BR /&gt;Copyright (C) Microsoft Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;/out:main.exe&lt;BR /&gt;/debug&lt;BR /&gt;main.obj&lt;BR /&gt;test.obj&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And when main.exe is checked:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alex_Y_Intel_0-1717719304191.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/55632iFC06492EA2DCBF11/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Alex_Y_Intel_0-1717719304191.png" alt="Alex_Y_Intel_0-1717719304191.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you please clarify your question by supplying a reproducer and exact commands used to demonstrate your issue? And please clearly indicate that which file you'd like to omit the file names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 00:17:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604637#M3831</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-06-07T00:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Remove filenames from compiled binary.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604639#M3832</link>
      <description>&lt;P&gt;ICX Version: 2024.1.0 Build 20240308&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main.cpp&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;

int test();

int main(){
    cout &amp;lt;&amp;lt; "hello world" &amp;lt;&amp;lt; endl;
    test();
}&lt;/LI-CODE&gt;&lt;P&gt;Test.cpp&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#include &amp;lt;iostream&amp;gt;
using namespace std;


int test(){
    cout &amp;lt;&amp;lt; "hello world" &amp;lt;&amp;lt; endl;
    return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Compilation steps:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;icx *.cpp /S
icx *.asm /Zi&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The resulting "Main.exe" contains the names "Main.asm" and "Test.asm". I want both of these names omitted from the binary. In a larger proprietary project with many sensitive filenames, this will obviously leak too much IP (intellectual property).&lt;/P&gt;&lt;P&gt;The binary also contains the name "Main.pdb", but that's okay since it's just the name of the .pdb.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, this only happens with ICX on Windows. It doesn't happen with MSVC, or even ICX on Linux.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 00:35:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604639#M3832</guid>
      <dc:creator>Mysticial</dc:creator>
      <dc:date>2024-06-07T00:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Remove filenames from compiled binary.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604918#M3839</link>
      <description>&lt;P&gt;Thanks, I understood now. I'm escalating your issue to our internal engineer team and will come back with update.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 19:42:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1604918#M3839</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-06-07T19:42:49Z</dc:date>
    </item>
    <item>
      <title>Re:Remove filenames from compiled binary.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1679845#M4389</link>
      <description>&lt;P&gt;The issue has been fixed in the recently released Intel Compiler version 2025.1 .&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Apr 2025 08:30:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/Remove-filenames-from-compiled-binary/m-p/1679845#M4389</guid>
      <dc:creator>Alina_S_Intel</dc:creator>
      <dc:date>2025-04-02T08:30:50Z</dc:date>
    </item>
  </channel>
</rss>

