1From 7b2bc50282c75c028b674a55c12318d229e7c731 Mon Sep 17 00:00:00 2001 2From: Andrew Hsieh <andrewhsieh@google.com> 3Date: Thu, 16 Oct 2014 18:02:42 +0800 4Subject: [PATCH 2/7] Fixed darwin ld.mcld GNU -m emulation fail 5 6Change-Id: I4190a509767f4c124b2b95d1ac9061aac06039ef 7--- 8 tools/mcld/lib/TripleOptions.cpp | 8 ++++---- 9 1 file changed, 4 insertions(+), 4 deletions(-) 10 11diff --git a/tools/mcld/lib/TripleOptions.cpp b/tools/mcld/lib/TripleOptions.cpp 12index c64e2bb..27a828d 100644 13--- a/tools/mcld/lib/TripleOptions.cpp 14+++ b/tools/mcld/lib/TripleOptions.cpp 15@@ -87,13 +87,13 @@ inline void ParseEmulation(llvm::Triple& pTriple, 16 .Case("aarch64linux", llvm::Triple("aarch64", "", "linux", "gnu")) 17 .Case("armelf_linux_eabi", 18 llvm::Triple("arm", "", "linux", "gnueabi")) 19- .Case("elf_i386", llvm::Triple("i386", "", "", "gnu")) 20- .Case("elf_x86_64", llvm::Triple("x86_64", "", "", "gnu")) 21+ .Case("elf_i386", llvm::Triple("i386", "", "linux", "gnu")) 22+ .Case("elf_x86_64", llvm::Triple("x86_64", "", "linux", "gnu")) 23 .Case("elf32_x86_64", llvm::Triple("x86_64", "", "", "gnux32")) 24 .Case("elf_i386_fbsd", llvm::Triple("i386", "", "freebsd", "gnu")) 25 .Case("elf_x86_64_fbsd", llvm::Triple("x86_64", "", "freebsd", "gnu")) 26- .Case("elf32ltsmip", llvm::Triple("mipsel", "", "", "gnu")) 27- .Case("elf64ltsmip", llvm::Triple("mips64el", "", "", "gnu")) 28+ .Case("elf32ltsmip", llvm::Triple("mipsel", "", "linux", "gnu")) 29+ .Case("elf64ltsmip", llvm::Triple("mips64el", "", "linux", "gnu")) 30 .Default(llvm::Triple()); 31 32 if (triple.getArch() == llvm::Triple::UnknownArch && 33-- 342.2.0.rc0.207.ga3a616c 35 36