This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: WinCE support in GAS
- To: nickc at cygnus dot com
- Subject: Re: WinCE support in GAS
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 23 Feb 2000 20:27:05 -0500
- CC: binutils at sourceware dot cygnus dot com
- References: <200002232117.NAA32613@elmo.cygnus.com>
Date: Wed, 23 Feb 2000 13:17:43 -0800
From: Nick Clifton <nickc@cygnus.com>
*** tc-sh.c 2000/02/17 00:33:36 1.5
--- tc-sh.c 2000/02/23 21:02:38
*************** md_begin ()
*** 209,214 ****
--- 209,218 ----
if (! shl)
target_big_endian = 1;
+ #ifdef TE_PE
+ target_big_endian = 0;
+ #endif
+
target_arch = arch_sh1_up & ~(sh_dsp ? arch_sh3e_up : arch_sh_dsp_up);
valid_arch = target_arch;
That seems like a bit of a hack. The SH assembler has a -mlittle
option. You are making that the default, with no -mbig option. I
suppose that is OK for PE, but I think this code needs at least a
comment.
If the SH has not previously supported BFD_ASSEMBLER, then more work
may be needed to produce relocation information correctly for things
like references to symbols defined in other sections.
Ian