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/objcopy.1 | |
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/objcopy.1')
-rw-r--r-- | binutils/objcopy.1 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/objcopy.1 b/binutils/objcopy.1 index 659121d..d3b8bb3 100644 --- a/binutils/objcopy.1 +++ b/binutils/objcopy.1 @@ -28,6 +28,7 @@ objcopy \- copy and translate object files .RB "[\|" \-X\fR\ |\ \fB\-\-discard\-locals\fR "\|]" .RB "[\|" \-b\ \fIbyte\fR\ |\ \fB\-\-byte=\fIbyte\fR "\|]" .RB "[\|" \-i\ \fIinterleave\fR\ |\ \fB\-\-interleave=\fIinterleave\fR "\|]" +.RB "[\|" \-p\fR\ |\ \fB\-\-preserve\-dates\fR "\|]" .RB "[\|" \-\-debugging "\|]" .RB "[\|" \-\-gap\-fill=\fIval\fR "\|]" .RB "[\|" \-\-pad\-to=\fIaddress\fR "\|]" @@ -159,6 +160,10 @@ Only copy one out of every \fIinterleave\fP bytes. Which one to copy is selected by the \fB\-b\fP or \fB\-\-byte\fP option. The default is 4. The interleave is ignored if neither \fB\-b\fP nor \fB\-\-byte\fP is given. .TP +.B \-p\fR, \fB\-\-preserve\-dates +Set the access and modification dates of the output file to be the same +as those of the input file. +.TP .B \-\-debugging Convert debugging information, if possible. This is not the default because only certain debugging formats are supported, and the |