diff options
author | Jan Beulich <jbeulich@novell.com> | 2005-11-15 08:33:38 +0000 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2005-11-15 08:33:38 +0000 |
commit | 1637cd900b9f1f05d0a128479bd3484cd98f2811 (patch) | |
tree | 49b2a63392584d3c8e7cfb6d5e71791b9fc8b255 /binutils/doc | |
parent | 9ab8018267fa3d466d8302aea29281dc121c5a52 (diff) | |
download | gdb-1637cd900b9f1f05d0a128479bd3484cd98f2811.zip gdb-1637cd900b9f1f05d0a128479bd3484cd98f2811.tar.gz gdb-1637cd900b9f1f05d0a128479bd3484cd98f2811.tar.bz2 |
binutils/
2005-11-15 Jan Beulich <jbeulich@novell.com>
* objcopy.c (keep_file_symbols): New.
(enum command_line_switch): Add OPTION_KEEP_FILE_SYMBOLS.
(strip_options): Add --keep-file-symbols.
(copy_options): Likewise.
(copy_usage): Likewise.
(strip_usage): Likewise.
(filter_symbols): Act upon keep_file_symbols.
(strip_main): Handle OPTION_KEEP_FILE_SYMBOLS.
(copy_main): Likewise.
* doc/binutils.texi: Document --keep-file-symbols for objcopy
and strip.
Diffstat (limited to 'binutils/doc')
-rw-r--r-- | binutils/doc/binutils.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/binutils/doc/binutils.texi b/binutils/doc/binutils.texi index f01919a..ee5114c 100644 --- a/binutils/doc/binutils.texi +++ b/binutils/doc/binutils.texi @@ -991,6 +991,7 @@ objcopy [@option{-F} @var{bfdname}|@option{--target=}@var{bfdname}] [@option{--prefix-sections=}@var{string}] [@option{--prefix-alloc-sections=}@var{string}] [@option{--add-gnu-debuglink=}@var{path-to-file}] + [@option{--keep-file-symbols}] [@option{--only-keep-debug}] [@option{--writable-text}] [@option{--readonly-text}] @@ -1428,6 +1429,11 @@ Prefix all the names of all allocated sections in the output file with Creates a .gnu_debuglink section which contains a reference to @var{path-to-file} and adds it to the output file. +@item --keep-file-symbols +When stripping a file, perhaps with @option{--strip-debug} or +@option{--strip-unneeded}, retain any symbols specifying source file names, +which would otherwise get stripped. + @item --only-keep-debug Strip a file, removing contents of any sections that would not be stripped by @option{--strip-debug} and leaving the debugging sections @@ -2223,6 +2229,7 @@ strip [@option{-F} @var{bfdname} |@option{--target=}@var{bfdname}] [@option{-x}|@option{--discard-all}] [@option{-X} |@option{--discard-locals}] [@option{-R} @var{sectionname} |@option{--remove-section=}@var{sectionname}] [@option{-o} @var{file}] [@option{-p}|@option{--preserve-dates}] + [@option{--keep-file-symbols}] [@option{--only-keep-debug}] [@option{-v} |@option{--verbose}] [@option{-V}|@option{--version}] [@option{--help}] [@option{--info}] @@ -2331,6 +2338,11 @@ Remove non-global symbols. Remove compiler-generated local symbols. (These usually start with @samp{L} or @samp{.}.) +@item --keep-file-symbols +When stripping a file, perhaps with @option{--strip-debug} or +@option{--strip-unneeded}, retain any symbols specifying source file names, +which would otherwise get stripped. + @item --only-keep-debug Strip a file, removing any sections that would be stripped by @option{--strip-debug} and leaving the debugging sections. |