diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-03-27 22:02:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-03-27 22:02:46 +0000 |
commit | 2483354d4b143824ede17ac5726754ff88924719 (patch) | |
tree | 370055c0bde9c1f911a1084d05a65abdda649bfa /binutils/binutils.texi | |
parent | 8d9b566dc5ebfac45a3e25050ca2ebf4954e9ffc (diff) | |
download | gdb-2483354d4b143824ede17ac5726754ff88924719.zip gdb-2483354d4b143824ede17ac5726754ff88924719.tar.gz gdb-2483354d4b143824ede17ac5726754ff88924719.tar.bz2 |
Based on patch from Marty Leisner <leisner@sdsp.mc.xerox.com>:
* objcopy.c: Include <utime.h> or <sys/time.h>.
(strip_options): Add "preserve-dates".
(copy_options): Likewise.
(copy_usage): Mention -p and --preserve-dates.
(strip_usage): Likewise.
(make_same_dates): New static function.
(strip_main): Handle -p.
(copy_main): Likewise.
* binutils.texi, strip.1, objcopy.1: Document new option.
Diffstat (limited to 'binutils/binutils.texi')
-rw-r--r-- | binutils/binutils.texi | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/binutils/binutils.texi b/binutils/binutils.texi index d0ec85d..c289119 100644 --- a/binutils/binutils.texi +++ b/binutils/binutils.texi @@ -813,7 +813,7 @@ objcopy [ -F @var{bfdname} | --target=@var{bfdname} ] [ -b @var{byte} | --byte=@var{byte} ] [ -i @var{interleave} | --interleave=@var{interleave} ] [ -R @var{sectionname} | --remove-section=@var{sectionname} ] - [ --debugging ] + [ -p | --preserve-dates ] [ --debugging ] [ --gap-fill=@var{val} ] [ --pad-to=@var{address} ] [ --set-start=@var{val} ] [ --adjust-start=@var{incr} ] [ --adjust-vma=@var{incr} ] @@ -932,6 +932,11 @@ copy with the @var{-b} or @samp{--byte} option. The default is 4. @code{objcopy} ignores this option if you do not specify either @samp{-b} or @samp{--byte}. +@item -p +@itemx --preserve-dates +Set the access and modification dates of the output file to be the same +as those of the input file. + @item --debugging Convert debugging information, if possible. This is not the default because only certain debugging formats are supported, and the @@ -1505,7 +1510,7 @@ strip [ -F @var{bfdname} | --target=@var{bfdname} | --target=@var{bfdname} ] [ -N @var{symbolname} | --strip-symbol=@var{symbolname} ] [ -x | --discard-all ] [ -X | --discard-locals ] [ -R @var{sectionname} | --remove-section=@var{sectionname} ] - [ -o @var{file} ] + [ -o @var{file} ] [ -p | --preserve-dates ] [ -v | --verbose ] [ -V | --version ] [ --help ] @var{objfile}@dots{} @end smallexample @@ -1572,6 +1577,10 @@ Put the stripped output in @var{file}, rather than replacing the existing file. When this argument is used, only one @var{objfile} argument may be specified. +@item -p +@itemx --preserve-dates +Preserve the access and modification dates of the file. + @item -x @itemx --discard-all Remove non-global symbols. |