WinCE support in GAS
Ian Lance Taylor
ian@zembu.com
Wed Feb 23 17:27:00 GMT 2000
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
More information about the Binutils
mailing list