What is the difference between "gcc -s" and a "strip" command? - Stack Overflow - strip symbol table


Linux strip command help and examples strip symbol table

strip — Strip Symbol Table, Debugging, and Line Number Information from an Object File Synopsis /usr/ccs/bin/strip [-blrVx] file Description Use the strip.

To answer to this question, we have first to rephrase it a bit. The real question can be stated like this: What are the symbols that cannot be removed from an ELF.

Linux and UNIX strip command information, examples, and help. strip is a GNU utility to "strip" symbols from object files. This is useful for . The above example would strip the symbol table from the executable file stoik.info

For example, -g strips only the debug information which gcc -g adds. They both do the same thing, removing the symbols table completely.

The strip command with no options removes the line number information, relocation information, symbol table, the debug section, and the typchk section, and the.