* ar.c (write_archive): Allocate space for the null byte. From
[deliverable/binutils-gdb.git] / binutils / objcopy.1
index 74e718eba35d6e0653093cbea01766d5395a32b1..4ba11646d72d0b94904aa94b145fd5f316b30eef 100644 (file)
@@ -8,7 +8,7 @@
 ..
 
 .SH NAME
-objcopy\(em\&copy and translate object files
+objcopy \- copy and translate object files
 
 .SH SYNOPSIS
 .hy 0
@@ -22,6 +22,8 @@ objcopy\(em\&copy and translate object files
 .RB "[\|" \-g\ |\ \-\-strip\-debug\fR "\|]" 
 .RB "[\|" \-x\ |\ \-\-discard\-all\fR "\|]" 
 .RB "[\|" \-X\ |\ \-\-discard\-locals\fR "\|]" 
+.RB  "[\|" \-b\ \fIbyte\fP |\ \-\-byte=\fIbyte\fP "\|]" 
+.RB  "[\|" \-i\ \fIinterleave\fP |\ \-\-interleave=\fIinterleave\fP "\|]" 
 .RB "[\|" \-v\ |\ \-\-verbose\fR "\|]" 
 .RB "[\|" \-V\ |\ \-\-version\fR "\|]" 
 .RB "[\|" \-\-help\fR "\|]" 
@@ -85,6 +87,17 @@ Do not copy non-global symbols from the source file.
 Do not copy compiler-generated local symbols. (These usually start
 with "L" or ".").
 .TP
+.B \-b \fIbyte\fR, \fB\-\-byte=\fIbyte
+Keep only every \fIbyte\fPth byte of the input file (header data is
+not affected).  \fIbyte\fP can be in the range from 0 to the
+interleave-1.  This option is useful for creating files to program
+ROMs.  It is typically used with an srec output target.
+.TP
+.B \-i \fIinterleave\fR, \fB\-\-interleave=\fIinterleave
+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 \-v\fR, \fB\-\-verbose
 Verbose output: list all object files modified.  In the case of
 archives, "\fBobjcopy \-V\fR" lists all members of the archive.
This page took 0.023564 seconds and 4 git commands to generate.