aboutsummaryrefslogtreecommitdiff
path: root/binutils/binutils.texi
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-05-30 10:46:28 +0000
committerNick Clifton <nickc@redhat.com>2001-05-30 10:46:28 +0000
commit16b2b71c0c71e5fc9107dc9b2747f95081cabb1b (patch)
tree727be4fe275dee284654be62e4d9790e47fd2862 /binutils/binutils.texi
parent5ea2a32c884a33f3707e03f09bec8b75b37d7877 (diff)
downloadgdb-16b2b71c0c71e5fc9107dc9b2747f95081cabb1b.zip
gdb-16b2b71c0c71e5fc9107dc9b2747f95081cabb1b.tar.gz
gdb-16b2b71c0c71e5fc9107dc9b2747f95081cabb1b.tar.bz2
Add command line switches to objcopy to provide lists of symbols in files
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r--binutils/binutils.texi42
1 files changed, 42 insertions, 0 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi
index f6e5df1..0011b11 100644
--- a/binutils/binutils.texi
+++ b/binutils/binutils.texi
@@ -923,6 +923,7 @@ objcopy [ -F @var{bfdname} | --target=@var{bfdname} ]
[ -S | --strip-all ] [ -g | --strip-debug ]
[ -K @var{symbolname} | --keep-symbol=@var{symbolname} ]
[ -N @var{symbolname} | --strip-symbol=@var{symbolname} ]
+ [ -G @var{symbolname} | --keep-global-symbol=@var{symbolname}]
[ -L @var{symbolname} | --localize-symbol=@var{symbolname} ]
[ -W @var{symbolname} | --weaken-symbol=@var{symbolname} ]
[ -x | --discard-all ] [ -X | --discard-locals ]
@@ -943,6 +944,11 @@ objcopy [ -F @var{bfdname} | --target=@var{bfdname} ]
[ --change-leading-char ] [ --remove-leading-char ]
[ --srec-len=@var{ival} ] [ --srec-forceS3 ]
[ --redefine-sym @var{old}=@var{new} ] [ --weaken ]
+ [ --keep-symbols=@var{filename} ]
+ [ --strip-symbols=@var{filename} ]
+ [ --keep-global-symbols=@var{filename} ]
+ [ --localize-symbols=@var{filename} ]
+ [ --weaken-symbols=@var{filename} ]
[ -v | --verbose ] [ -V | --version ] [ --help ]
@var{infile} [@var{outfile}]
@c man end
@@ -1056,6 +1062,12 @@ be given more than once.
Do not copy symbol @var{symbolname} from the source file. This option
may be given more than once.
+@item -G @var{symbolname}
+@itemx --keep-global-symbol=@var{symbolname}
+Keep only symbol @var{symbolname} global. Make all other symbols local
+to the file, so that they are not visible externally. This option may
+be given more than once.
+
@item -L @var{symbolname}
@itemx --localize-symbol=@var{symbolname}
Make symbol @var{symbolname} local to the file, so that it is not
@@ -1239,6 +1251,36 @@ 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 --keep-symbols=@var{filename}
+Apply @samp{--keep-symbol} option to each symbol listed in the file
+@var{filename}. @var{filename} is simply a flat file, with one symbol
+name per line. Line comments may be introduced by the hash character.
+This option may be given more than once.
+
+@item --strip-symbols=@var{filename}
+Apply @samp{--strip-symbol} option to each symbol listed in the file
+@var{filename}. @var{filename} is simply a flat file, with one symbol
+name per line. Line comments may be introduced by the hash character.
+This option may be given more than once.
+
+@item --keep-global-symbols=@var{filename}
+Apply @samp{--keep-global-symbol} option to each symbol listed in the
+file @var{filename}. @var{filename} is simply a flat file, with one
+symbol name per line. Line comments may be introduced by the hash
+character. This option may be given more than once.
+
+@item --localize-symbols=@var{filename}
+Apply @samp{--localize-symbol} option to each symbol listed in the file
+@var{filename}. @var{filename} is simply a flat file, with one symbol
+name per line. Line comments may be introduced by the hash character.
+This option may be given more than once.
+
+@item --weaken-symbols=@var{filename}
+Apply @samp{--weaken-symbol} option to each symbol listed in the file
+@var{filename}. @var{filename} is simply a flat file, with one symbol
+name per line. Line comments may be introduced by the hash character.
+This option may be given more than once.
+
@item -V
@itemx --version
Show the version number of @code{objcopy}.