diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-12-19 18:16:45 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-12-19 18:16:45 +0000 |
commit | 9a442fe8a57cea65858b1613b21a2f516a04217d (patch) | |
tree | d58382ce8dc02fa2c4202d7cc75b36ad2f2251b3 /binutils/binutils.texi | |
parent | 214e969267acd11ce81584187f66b1139b4d81cd (diff) | |
download | gdb-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/binutils.texi')
-rw-r--r-- | binutils/binutils.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi index d59f545..08666cc 100644 --- a/binutils/binutils.texi +++ b/binutils/binutils.texi @@ -818,6 +818,7 @@ objcopy [ -F @var{bfdname} | --target=@var{bfdname} ] [ --set-section-flags=@var{section}=@var{flags} ] [ --add-section=@var{sectionname}=@var{filename} ] [ --change-leading-char ] [ --remove-leading-char ] + [ --weaken ] [ -v | --verbose ] [ -V | --version ] [ --help ] @var{infile} [@var{outfile}] @end smallexample @@ -1008,6 +1009,12 @@ different conventions for symbol names. This is different from when appropriate, regardless of the object file format of the output file. +@item --weaken +Change all global symbols in the file to be weak. This can be useful +when building an object which will be linked against other objects using +the @code{-R} option to the linker. This option is only effective when +using an object file format which supports weak symbols. + @item -V @itemx --version Show the version number of @code{objcopy}. |