diff options
author | Richard Henderson <rth@redhat.com> | 1997-10-09 04:34:59 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1997-10-09 04:34:59 +0000 |
commit | 8d2e72a1c8919c8e54bfe4d5b508c382586ed4cd (patch) | |
tree | 38b6a537eac11b5c62144f8b3e526c422c6dda88 /binutils/objcopy.1 | |
parent | 2875c6c6853325552cd9fb35c6d4842da47ca9cc (diff) | |
download | gdb-8d2e72a1c8919c8e54bfe4d5b508c382586ed4cd.zip gdb-8d2e72a1c8919c8e54bfe4d5b508c382586ed4cd.tar.gz gdb-8d2e72a1c8919c8e54bfe4d5b508c382586ed4cd.tar.bz2 |
* objcopy.c (keep_specific_list, privatize_specific_list,
weaken_specific_list): New variables.
(keep_symbols): Removed.
(add_specific_symbol): New function from the carcas of
add_strip_symbol. Takes a list as an argument.
(is_specified_symbol): Likewise from is_strip_symbol.
(filter_symbols): Honor the new privatize and weaken lists.
Optimize bfd_asymbol_name handling.
(copy_object, copy_options, copy_usage): Add privatize-symbol &
weaken-symbol options.
* objcopy.1, binutils.texi: Update docs.
Diffstat (limited to 'binutils/objcopy.1')
-rw-r--r-- | binutils/objcopy.1 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/binutils/objcopy.1 b/binutils/objcopy.1 index d3b8bb3..dd5cf68 100644 --- a/binutils/objcopy.1 +++ b/binutils/objcopy.1 @@ -24,6 +24,8 @@ objcopy \- copy and translate object files .RB "[\|" \-\-strip\-unneeded\fR "\|]" .RB "[\|" \-K\ \fIsymbolname\fR\ |\ \fB\-\-keep\-symbol=\fIsymbolname\fR "\|]" .RB "[\|" \-N\ \fIsymbolname\fR\ |\ \fB\-\-strip\-symbol=\fIsymbolname\fR "\|]" +.RB "[\|" \-P\ \fIsymbolname\fR\ |\ \fB\-\-privatize\-symbol=\fIsymbolname\fR "\|]" +.RB "[\|" \-W\ \fIsymbolname\fR\ |\ \fB\-\-weaken\-symbol=\fIsymbolname\fR "\|]" .RB "[\|" \-x\fR\ |\ \fB\-\-discard\-all\fR "\|]" .RB "[\|" \-X\fR\ |\ \fB\-\-discard\-locals\fR "\|]" .RB "[\|" \-b\ \fIbyte\fR\ |\ \fB\-\-byte=\fIbyte\fR "\|]" @@ -139,8 +141,14 @@ may be given more than once. .TP .B \-N \fIsymbolname\fR, \fB\-\-strip\-symbol=\fIsymbolname Do not copy symbol \fIsymbolname\fP from the source file. This option -may be given more than once, and may be combined with strip options -other than \fB\-K\fR. +may be given more than once. +.TP +.B \-P \fIsymbolname\fR, \fB\-\-privatize\-symbol=\fIsymbolname +Make symbol \fIsymbolname\fP local to the file, so that it is not +visible externally. This option may be given more than once. +.TP +.B \-W \fIsymbolname\fR, \fB\-\-weaken\-symbol=\fIsymbolname +Make symbol \fIsymbolname\fP weak. This option may be given more than once. .TP .B \-x\fR, \fB \-\-discard\-all Do not copy non-global symbols from the source file. |