aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2013-04-02 19:50:59 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2013-04-02 20:36:26 +0800
commit8648b5263208a4e894d9ceaacedb72d48be70c55 (patch)
tree57a16d74396597f680d32de7c4a4c7fb1aca360a /gcc-4.8
parent06b207c97dfb0d70f1f2ef91b93b665dceae0d27 (diff)
downloadtoolchain_gcc-8648b5263208a4e894d9ceaacedb72d48be70c55.tar.gz
toolchain_gcc-8648b5263208a4e894d9ceaacedb72d48be70c55.tar.bz2
toolchain_gcc-8648b5263208a4e894d9ceaacedb72d48be70c55.zip
[4.8] 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 See 125708b8e3afa6007ce3aa7132165d27b719ccc3 Change-Id: I79d67b5a69884713b9a3aaa59012c9170b823068
Diffstat (limited to 'gcc-4.8')
-rw-r--r--gcc-4.8/gcc/config/mips/gnu-user.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc-4.8/gcc/config/mips/gnu-user.h b/gcc-4.8/gcc/config/mips/gnu-user.h
index 8c8a65a6e..2b4695f20 100644
--- a/gcc-4.8/gcc/config/mips/gnu-user.h
+++ b/gcc-4.8/gcc/config/mips/gnu-user.h
@@ -58,6 +58,7 @@ along with GCC; see the file COPYING3. If not see
#define GNU_USER_TARGET_LINK_SPEC \
"%(endian_spec) \
%{shared:-shared} \
+ %{!EB:%{!meb:-m elf32ltsmip}} %{EB|meb:-m elf32btsmip} \
%{!shared: \
%{!static: \
%{rdynamic:-export-dynamic} \