---
name: "gpstrip"
section: "1"
platform: "linux"
package: "gputils"
version: "1.5.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/gpstrip"
---

# gpstrip(1)

discard symbols from object file

## NAME

gpstrip - discard symbols from object file

## SYNOPSIS

**gpstrip \[options\] \[file(s)\]**

## WARNING

The information in this man page is an extract from the full documentation of gputils and is limited to the meaning of the options.  For complete and  current documentation, refer to "gputils.ps" located in the gputils docs directory.

## DESCRIPTION

**gpstrip** discards symbols from GNU PIC object files. **gpstrip** is part of gputils.  Check the [**gputils**(1)](/gputils/1.md) manpage for details on other GNU PIC utilities.

## OPTIONS

- **-g**, **--strip-debug**

  Strip debug symbols.

- **-h**, **--help**

  Show the usage message and exit.

- **-k SYMBOL**, **--keep-symbol SYMBOL**

  Keep symbol.

- **-n SYMBOL**, **--strip-symbol SYMBOL**

  Remove symbol.

- **-o FILE**, **--output FILE**

  Alternate name of output file.

- **-p**, **--preserve-dates**

  Preserve dates.

- **-r SECTION**, **--remove-section SECTION**

  Remove section.

- **--strict-options**

  If this is set, then an option may not be parameter of an another option. For example: -o --version

- **-s**, **--strip-all**

  Remove all symbols.

- **-u**, **--strip-unneeded**

  Strip symbols not need for relocations.

- **-v**, **--version**

  Show the version information and exit.

- **-V**, **--verbose**

  Verbose mode.

- **-x**, **--discard-all**

  Remove non-global symbols.

## SEE ALSO

[**gputils**(1)](/gputils/1.md)

## AUTHOR

Craig Franklin \<craigfranklin@users.sourceforge.net\>

## COPYRIGHT

Copyright (C) 2005 Craig Franklin

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
