aboutsummaryrefslogtreecommitdiff
path: root/binutils/objcopy.1
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-12-19 18:16:45 +0000
committerIan Lance Taylor <ian@airs.com>1996-12-19 18:16:45 +0000
commit9a442fe8a57cea65858b1613b21a2f516a04217d (patch)
treed58382ce8dc02fa2c4202d7cc75b36ad2f2251b3 /binutils/objcopy.1
parent214e969267acd11ce81584187f66b1139b4d81cd (diff)
downloadgdb-9a442fe8a57cea65858b1613b21a2f516a04217d.zip
gdb-9a442fe8a57cea65858b1613b21a2f516a04217d.tar.gz
gdb-9a442fe8a57cea65858b1613b21a2f516a04217d.tar.bz2
Based on patch from Andrew J Klossner <andrew@pogo.wv.tek.com>:
* objcopy.c (OPTION_WEAKEN): Define. (copy_options): Add "weaken". (copy_usage): Mention --weaken. (weaken): New static variable. (filter_symbols): Handle weaken. (copy_object): Call filter_symbols if weaken. (copy_main): Handle OPTION_WEAKEN. * binutils.texi, objcopy.1: Document --weaken. PR 11272.
Diffstat (limited to 'binutils/objcopy.1')
-rw-r--r--binutils/objcopy.14
1 files changed, 4 insertions, 0 deletions
diff --git a/binutils/objcopy.1 b/binutils/objcopy.1
index e83aa74..ad087e8 100644
--- a/binutils/objcopy.1
+++ b/binutils/objcopy.1
@@ -41,6 +41,7 @@ objcopy \- copy and translate object files
.RB "[\|" \-\-add\-section=\fIsectionname=filename\fR "\|]"
.RB "[\|" \-\-change\-leading\-char\fR "\|]"
.RB "[\|" \-\-remove\-leading\-char\fR "\|]"
+.RB "[\|" \-\-weaken\fR "\|]"
.RB "[\|" \-v\ |\ \-\-verbose\fR "\|]"
.RB "[\|" \-V\ |\ \-\-version\fR "\|]"
.RB "[\|" \-\-help\fR "\|]"
@@ -241,6 +242,9 @@ with different conventions for symbol names. This is different from
@code{--change-leading-char} because it always changes the symbol name
when appropriate, regardless of the object file format of the output
.TP
+.B\-\-weaken
+Change all global symbols in the file to be weak.
+.TP
.B \-v\fR, \fB\-\-verbose
Verbose output: list all object files modified. In the case of
archives, "\fBobjcopy \-V\fR" lists all members of the archive.