From 42c9fb0eb7a0e9de7c4d079c942a6d5b3efe3a93 Mon Sep 17 00:00:00 2001 From: Matteo Briani <47302999+matteo-briani@users.noreply.github.com> Date: Wed, 10 Nov 2021 09:57:28 +0100 Subject: [PATCH] strip: add page (#7378) --- pages/linux/strip.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/strip.md diff --git a/pages/linux/strip.md b/pages/linux/strip.md new file mode 100644 index 000000000..ddab4a92d --- /dev/null +++ b/pages/linux/strip.md @@ -0,0 +1,16 @@ +# strip + +> Discard symbols from executables or object files. +> More information: . + +- Replace the input file with its stripped version: + +`strip {{path/to/file}}` + +- Strip symbols from a file, saving the output to a specific file: + +`strip {{path/to/input_file}} -o {{path/to/output_file}}` + +- Strip debug symbols only: + +`strip --strip-debug {{path/to/file.o}}`