bi-endian support for moxie.

This commit is contained in:
Anthony Green 2012-09-13 23:57:33 +00:00
parent d9eaa4f603
commit af32eb5e28
4 changed files with 16 additions and 2 deletions

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -280,7 +280,11 @@
#endif
#ifdef __moxie__
#ifdef __MOXIE_BIG_ENDIAN__
#define __IEEE_BIG_ENDIAN
#else
#define __IEEE_LITTLE_ENDIAN
#endif
#endif
#ifdef __ia64__