14.7.3 Options

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

Table 14-9. XC32-strip Options
Option Function
-g

-S

--strip-debug

Remove debugging symbols only.
--help Show 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 file Put 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-unneeded Remove 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. 
(These usually start with L or a dot (.).