You copied the Doc URL to your clipboard.


Modifies parts of an image to help protect your code.


The effect of this option is different for images and object files.

When producing an executable image it removes local symbols from the output symbol table.

For object files built with the --partial option, this option:

  • Changes section names to a default value, for example, changes code section names to .text.

  • Keeps mapping symbols and build attributes in the symbol table.

  • Removes those local symbols that can be removed without loss of functionality.

    Symbols that cannot be removed, such as the targets for relocations, are kept. For these symbols, the names are removed. These are marked as [Anonymous Symbol] in the fromelf --text output.


To help protect your code in images and objects that are delivered to third parties, use the fromelf --privacy command.