9.2.35 --retain-symbols-file file
Keep only symbols listed in file
.
Retain only the symbols listed in the file
file
, discarding all others.
file
is simply a flat file, with one symbol name
per line. This option is especially useful in environments where a large global symbol
table is accumulated gradually, to conserve run-time memory. --retain-symbols-file
does not discard undefined symbols, or symbols needed
for relocations. You may only specify --retain-symbols-file
once in the command line. It overrides -s
and -S
.