Strip Command Inquiry

Nick Clifton
Fri Mar 12 15:14:22 GMT 2021

Hi Kim,

> I would like to figure out how the Strip Command works. I took a look at the
> source code, but am having trouble pinpointing exactly how 'strip' is
> implemented and how strip removes static symbols from binaries.

Take a look at the filter_symbols() function in binutils/objcopy.c.  The
function contains a heuristic to complute the value of the local variable
'keep'.  If it decides that keep is true then the symbol is copied from
the input symbol table to the output symbol table, otherwise it is


More information about the Binutils mailing list