Thu Nov 17 15:37:19 1994 Mark W. Eichin <eichin@cygnus.com>

* objcopy.c (add_strip_symbol): New function, adds a name to an
	explicit list of symbols to strip.
	(is_strip_symbol): New function, reports whether the name argument
	is in the explicit list.
	(filter_symbols): Check against is_strip_symbol above all.
	(strip_main): Recognize -N option. If used, don't default to
	strip_all.
	(copy_main): Recognize -N option.
	(strip_usage): Document -N and --strip-symbol options.
	(copy_usage): Ditto.
	* objcopy.1, strip.1, binutils.texi: Document -N and
	--strip-symbol options.
This commit is contained in:
Ian Lance Taylor
1994-11-18 16:00:41 +00:00
parent 3f9ef4ffe9
commit 29c0d15c01
4 changed files with 43 additions and 0 deletions

View File

@@ -91,6 +91,14 @@ Remove all symbols.
.B \-\-strip\-debug
Remove debugging symbols only.
.TP
.B \-N \fIsymbolname\fR
.TP
.B \-\-strip\-symbol=\fIsymbolname
Remove symbol \fIsymbolname\fP from the source file. This option
may be given more than once, and may be combined with other strip
options.
.TP
.B \-x
.TP