16.6.3 Options

The long and short forms of options, shown in the table below as alternatives, are equivalent.

Table 16-8. xc32-strip Options
OptionFunction
-g

-S

--strip-debug

Remove debugging symbols only.
--helpShow a summary of the options to xc32-strip and exit.
-K symbolname

--keep-symbol=symbolname

Keep only symbol symbolname from the source file. This option may be given more than once.
-N symbolname

--strip-symbol=symbolname

Remove symbol symbolname from the source file. This option may be given more than once, and may be combined with strip options other than -K.
-o filePut the stripped output in file, rather than replacing the existing file. When this argument is used, only one OBJFILE argument may be specified.
-p

--preserve-dates

Preserve the access and modification dates of the file.
-R sectionname

--remove-section=sectionname

Remove any section named sectionname from the output file. This option may be given more than once. Note that using this option inappropriately may make the output file unusable.
-s

--strip-all

Remove all symbols.
--strip-unneededRemove all symbols that are not needed for relocation processing.
-v

--verbose

Verbose output: list all object files modified. In the case of archives, xc32-strip -v lists all members of the archive.
-V

--version

Show the version number for xc32-strip.
-x

--discard-all

Remove non-global symbols.
-X

--discard-locals

Remove compiler-generated local symbols 
(which usually start with L or “.”).