This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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: 01 02 03 04 05 06 07 08 Allows users to re-order them as: 02 01 04 03 06 05 08 07 (2 byte reversal) 04 03 02 01 08 07 06 05 (4 byte reversal) 03 04 01 02 07 08 05 06 (combination 2 & 4 byte reversal) There was no comment on his original message, and we have customers who still find this functionality useful. Changes from the original patch: * The original patch's documentation has been converted into texinfo; * Patch has been cleaned up a little bit; * A DejaGNU testcase has been added. OK? -Nathan
Attachment:
reverse.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |