This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] add --reverse option to objcopy
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Nathan Froyd <froydnj at codesourcery dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 13 Apr 2007 07:55:53 -0700
- Subject: Re: [PATCH] add --reverse option to objcopy
- References: <20070413144921.GB9017@sparrowhawk.codesourcery.com>
On Fri, Apr 13, 2007 at 07:49:22AM -0700, Nathan Froyd wrote:
> The attached patch is a forward-port of a patch originally proposed by
> Thomas de Lellis:
>
> http://sourceware.org/ml/binutils/2000-03/msg00319.html
>
> The rationale from the original message:
>
> This patch solves problems trying to use the existing tools, to
> generate a ROM images for certain target systems where the byte order
> implemented in hardware did not match the endian the processor
> used. The ROM programmer did not have this functionality built in
> unfortunately.
>
> A new option "--reverse" has been added swap bytes within
> an output section... Given bytes in the order:
I was very curious what --reverse would do when I looked at the
subject. IMHO, --reverse-endian is clearer.
H.J.