[PATCH]: Fix -mlittle-endian switch for ARM
Nick Clifton
nickc@redhat.com
Thu May 5 07:47:00 GMT 2005
Hi Guys,
A small thinko in the tc-arm.c file means that the -mlittle-endian
GAS command line switch makes the resulting output file big endian!
I am fixing this by applying the patch below.
Cheers
Nick
gas/ChangeLog
2005-05-05 Nick Clifton <nickc@redhat.com>
* config/tc-arm.c (arm_opts): Make -mlittle-endian switch set
the target_big_endian variable to false.
Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.202
diff -c -3 -p -r1.202 tc-arm.c
*** gas/config/tc-arm.c 19 Apr 2005 15:05:08 -0000 1.202
--- gas/config/tc-arm.c 5 May 2005 07:37:46 -0000
*************** struct arm_option_table arm_opts[] =
*** 12870,12876 ****
{"mapcs-reentrant", N_("re-entrant code"), &pic_code, 1, NULL},
{"matpcs", N_("code is ATPCS conformant"), &atpcs, 1, NULL},
{"mbig-endian", N_("assemble for big-endian"), &target_big_endian, 1, NULL},
! {"mlittle-endian", N_("assemble for little-endian"), &target_big_endian, 1,
NULL},
/* These are recognized by the assembler, but have no affect on code. */
--- 12870,12876 ----
{"mapcs-reentrant", N_("re-entrant code"), &pic_code, 1, NULL},
{"matpcs", N_("code is ATPCS conformant"), &atpcs, 1, NULL},
{"mbig-endian", N_("assemble for big-endian"), &target_big_endian, 1, NULL},
! {"mlittle-endian", N_("assemble for little-endian"), &target_big_endian, 0,
NULL},
/* These are recognized by the assembler, but have no affect on code. */
More information about the Binutils
mailing list