diff options
author | Anthony Green <green@moxielogic.com> | 2012-09-13 23:57:33 +0000 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2012-09-13 23:57:33 +0000 |
commit | af32eb5e28bee21780150617740a5d15abf6cf8b (patch) | |
tree | 52d57ed8fc5f607498c3cfad4c860e795513c73e | |
parent | d9eaa4f603493efabaa53fdaf2f2ab70e0c020aa (diff) | |
download | newlib-af32eb5e28bee21780150617740a5d15abf6cf8b.zip newlib-af32eb5e28bee21780150617740a5d15abf6cf8b.tar.gz newlib-af32eb5e28bee21780150617740a5d15abf6cf8b.tar.bz2 |
bi-endian support for moxie.
-rw-r--r-- | libgloss/ChangeLog | 4 | ||||
-rw-r--r-- | libgloss/moxie/moxie-elf-common.ld | 5 | ||||
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/machine/ieeefp.h | 4 |
4 files changed, 16 insertions, 2 deletions
diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 5ef85b9..09ffbe9 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,7 @@ +2012-09-13 Anthony Green <green@moxielogic.com> + + * moxie/moxie-elf-common.ld: Add bi-endian support. + 2012-08-30 DJ Delorie <dj@redhat.com> * rx/rx.ld: Add W_* sections to .rodata. diff --git a/libgloss/moxie/moxie-elf-common.ld b/libgloss/moxie/moxie-elf-common.ld index 041e906..ee15510 100644 --- a/libgloss/moxie/moxie-elf-common.ld +++ b/libgloss/moxie/moxie-elf-common.ld @@ -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 diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 10e7dab..d7ad835 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2012-09-13 Anthony Green <green@moxielogic.com> + + * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Add bi-endian + support for moxie. + 2012-08-23 Christopher Faylor <me.cygwin2012@cgf.cx> * libc/stdio/flags.c (__sflags): Guard against using O_BINARY on diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index 72c1cc5..7fca16d 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -280,7 +280,11 @@ #endif #ifdef __moxie__ +#ifdef __MOXIE_BIG_ENDIAN__ #define __IEEE_BIG_ENDIAN +#else +#define __IEEE_LITTLE_ENDIAN +#endif #endif #ifdef __ia64__ |