From 080bb7bbe9d06424be5a989ae87160d655d22e2e Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 10 Apr 2015 08:26:07 +0100 Subject: Add documentation about the interation of the ARM assembler's -EB option and the linker's --be8 option. 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/doc/c-arm.texi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gas/doc/c-arm.texi') diff --git a/gas/doc/c-arm.texi b/gas/doc/c-arm.texi index 18becb7aa37..f07aa62bd41 100644 --- a/gas/doc/c-arm.texi +++ b/gas/doc/c-arm.texi @@ -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 -- cgit v1.2.1