diff --git a/libgloss/ChangeLog b/libgloss/ChangeLog index 5ef85b918..09ffbe972 100644 --- a/libgloss/ChangeLog +++ b/libgloss/ChangeLog @@ -1,3 +1,7 @@ +2012-09-13 Anthony Green + + * moxie/moxie-elf-common.ld: Add bi-endian support. + 2012-08-30 DJ Delorie * 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 041e90616..ee1551003 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 10e7dabee..d7ad83586 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2012-09-13 Anthony Green + + * libc/include/machine/ieeefp.h (__IEEE_BIG_ENDIAN): Add bi-endian + support for moxie. + 2012-08-23 Christopher Faylor * 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 72c1cc542..7fca16d3c 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__