This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH]: Fix -mlittle-endian switch for ARM
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 05 May 2005 08:40:15 +0100
- Subject: [PATCH]: Fix -mlittle-endian switch for ARM
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. */