diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2013-02-28 10:54:44 +0800 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2013-02-28 10:54:44 +0800 |
commit | 125708b8e3afa6007ce3aa7132165d27b719ccc3 (patch) | |
tree | f5ef700159f69f4ed0fd0aba79b3112308931598 /gcc-4.7/gcc/config | |
parent | 6502f082fed932c0609b475d5d6917103700e5a8 (diff) | |
download | toolchain_gcc-125708b8e3afa6007ce3aa7132165d27b719ccc3.tar.gz toolchain_gcc-125708b8e3afa6007ce3aa7132165d27b719ccc3.tar.bz2 toolchain_gcc-125708b8e3afa6007ce3aa7132165d27b719ccc3.zip |
Fix MIPS GCC to emit -m elf32ltsmip for linker
ARM/X86 GCC in NDK explicitly emit -m armelf_linux_eabi and -m elf_i386,
respectively, for linker. Fix MIPS to do the same, to help mclinker
which is built vanilla and relies on either filename (eg.
eg. arm-linux-androideabi-ld.mcd implies arm) or -mtriple/-march/-m
to figure out the target
Change-Id: I236786d0e90a3152225de1eea5e73e3de4ac3f84
Diffstat (limited to 'gcc-4.7/gcc/config')
-rw-r--r-- | gcc-4.7/gcc/config/mips/gnu-user.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc-4.7/gcc/config/mips/gnu-user.h b/gcc-4.7/gcc/config/mips/gnu-user.h index 33e7b51a9..533a74083 100644 --- a/gcc-4.7/gcc/config/mips/gnu-user.h +++ b/gcc-4.7/gcc/config/mips/gnu-user.h @@ -60,6 +60,7 @@ along with GCC; see the file COPYING3. If not see #define LINUX_SUBTARGET_LINK_SPEC \ "%(endian_spec) \ %{shared:-shared} \ + %{!EB:%{!meb:-m elf32ltsmip}} %{EB|meb:-m elf32btsmip} \ %{!shared: \ %{!static: \ %{rdynamic:-export-dynamic} \ |