You copied the Doc URL to your clipboard.

--debugonly

This option removes the content of any code or data sections. This ensures that the output file contains only the information required for debugging, for example, debug sections, symbol table, and string table. Section headers are retained because they are required to act as targets for symbols.

Restrictions

You must use --elf with this option.

See also

Reference