Modify the BE8_LINK_SPEC if big endian to use !mlittle-endian

This commit is contained in:
matt 2013-08-04 03:52:28 +00:00
parent 45ee4e0c87
commit 145100d1a1
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@
#undef TARGET_LINKER_EMULATION
#if TARGET_BIG_ENDIAN_DEFAULT
#define TARGET_LINKER_EMULATION TARGET_LINKER_BIG_EMULATION
#undef BE8_LINK_SPEC
#define BE8_LINK_SPEC " %{!mlittle-endian:%{march=armv7-a|mcpu=cortex-a5|mcpu=cortex-a8|mcpu=cortex-a9:%{!r:--be8}}}"
#else
#define TARGET_LINKER_EMULATION TARGET_LINKER_LITTLE_EMULATION
#endif