Add documentation about the interation of the ARM assembler's -EB option and the...
authorNick Clifton <nickc@redhat.com>
Fri, 10 Apr 2015 07:26:07 +0000 (08:26 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 10 Apr 2015 07:26:07 +0000 (08:26 +0100)
PR binutils/18198
* ld.texinfo (--be8): Add a note about the interaction of this
option with the assembler's -EB option.

* doc/c-arm.texi (ARM Options): Add a note about the interaction of
the -EB option with the linker's --be8 option.

gas/ChangeLog
gas/doc/c-arm.texi
ld/ChangeLog
ld/ld.texinfo

index fb4355e..636ef3c 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-10  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/18198
+       * doc/c-arm.texi (ARM Options): Add a note about the interaction of
+       the -EB option with the linker's --be8 option.
+
 2015-04-09  Hans-Peter Nilsson  <hp@axis.com>
 
        * doc/c-rx.texi: Fix markup typos in last change.
index 18becb7..f07aa62 100644 (file)
@@ -362,6 +362,12 @@ and
 This option specifies that the output generated by the assembler should
 be marked as being encoded for a big-endian processor.
 
+Note: If a program is being built for a system with big-endian data
+and little-endian instructions then it should be assembled with the
+@option{-EB} option, (all of it, code and data) and then linked with
+the @option{--be8} option.  This will reverse the endianness of the
+instructions back to little-endian, but leave the data as big-endian.
+
 @cindex @code{-EL} command line option, ARM
 @item -EL
 This option specifies that the output generated by the assembler should
index b4d3ceb..da54c5c 100644 (file)
@@ -1,3 +1,9 @@
+2015-04-10  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/18198
+       * ld.texinfo (--be8): Add a note about the interaction of this
+       option with the assembler's -EB option.
+
 2015-04-10  Alan Modra  <amodra@gmail.com>
 
        PR ld/18223
index 82735e9..5384c98 100644 (file)
@@ -6424,8 +6424,10 @@ import tables. By default this option is turned off.
 @cindex BE8
 @kindex --be8
 The @samp{--be8} switch instructs @command{ld} to generate BE8 format
-executables.  This option is only valid when linking big-endian objects.
-The resulting image will contain big-endian data and little-endian code.
+executables.  This option is only valid when linking big-endian
+objects - ie ones which have been assembled with the @option{-EB}
+option.  The resulting image will contain big-endian data and
+little-endian code.
 
 @cindex TARGET1
 @kindex --target1-rel