[Patch, moxie] Add bi-endian support
Anthony Green
green@moxielogic.com
Fri Sep 21 20:23:00 GMT 2012
The moxie toolchain now supports both big- and little-endian core
implementations. This requires very minor changes to newlib and
libgloss that I am checking in.
Thanks,
Anthony Green
Newlib...
2012-09-13 Anthony Green <green@moxielogic.com>
* libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Add bi-endian
support for moxie.
Index: newlib/libc/include/machine/ieeefp.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/machine/ieeefp.h,v
retrieving revision 1.50
diff -u -p -r1.50 ieeefp.h
--- newlib/libc/include/machine/ieeefp.h 21 Feb 2012 22:34:30 -0000 1.50
+++ newlib/libc/include/machine/ieeefp.h 13 Sep 2012 23:52:29 -0000
@@ -280,7 +280,11 @@
#endif
#ifdef __moxie__
+#ifdef __MOXIE_BIG_ENDIAN__
#define __IEEE_BIG_ENDIAN
+#else
+#define __IEEE_LITTLE_ENDIAN
+#endif
#endif
#ifdef __ia64__
Libgloss...
2012-09-13 Anthony Green <green@moxielogic.com>
* moxie/moxie-elf-common.ld: Add bi-endian support.
Index: libgloss/moxie/moxie-elf-common.ld
===================================================================
RCS file: /cvs/src/src/libgloss/moxie/moxie-elf-common.ld,v
retrieving revision 1.2
diff -u -p -r1.2 moxie-elf-common.ld
--- libgloss/moxie/moxie-elf-common.ld 1 May 2009 02:53:25 -0000 1.2
+++ libgloss/moxie/moxie-elf-common.ld 13 Sep 2012 23:52:36 -0000
@@ -2,7 +2,7 @@
* The common part of the default linker scripts for standalone
* executables running on a Moxie processor.
*
- * Copyright (C) 2008 Anthony Green
+ * Copyright (C) 2008, 2012 Anthony Green
*
* The authors hereby grant permission to use, copy, modify,
* distribute, and license this software and its documentation for any
@@ -15,7 +15,8 @@
* clearly indicated on the first page of each file where they apply.
*/
-OUTPUT_FORMAT("elf32-moxie")
+OUTPUT_FORMAT("elf32-bigmoxie", "elf32-bigmoxie",
+ "elf32-littlemoxie")
OUTPUT_ARCH(moxie)
ENTRY(_start)
SECTIONS
More information about the Newlib
mailing list