How to remove unit names from Delphi executables

162 views Asked by At

I am using Delphi 11.3. Regardless of the compiler settings, every unit name included in the project ends up in plain text in the executable.

For example, the following empty unit adds the "MyMainUnit" string to the compiled file.

unit MyMainUnit;

interface

implementation

end.

I tried all sensible options for the compiler and linker, to no avail.

Is the only option to massage/encrypt the executable after linking?

Existing posts did not provide any help:

How can I remove strings containing type names from Delphi executables and globally disable RTTI for a project?

Delphi: Prevent method names from appearing in executables

Remove classes string name from compiled release exe

0

There are 0 answers