[PATCH] D18661: lld: accept elf_i386_fbsd as an alias for elf_i386

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 31 11:44:36 PDT 2016


emaste created this revision.
emaste added reviewers: ruiu, rafael, davide.
emaste added a subscriber: llvm-commits.
Herald added a subscriber: emaste.

elf_i386_fbsd is used in the FreeBSD/amd64 build for the 32-bit compat libs.

http://reviews.llvm.org/D18661

Files:
  ELF/Driver.cpp

Index: ELF/Driver.cpp
===================================================================
--- ELF/Driver.cpp
+++ ELF/Driver.cpp
@@ -54,7 +54,7 @@
     return {ELF32BEKind, EM_PPC};
   if (S == "elf64ppc" || S == "elf64ppc_fbsd")
     return {ELF64BEKind, EM_PPC64};
-  if (S == "elf_i386")
+  if (S == "elf_i386" || S == "elf_i386_fbsd")
     return {ELF32LEKind, EM_386};
   if (S == "elf_x86_64")
     return {ELF64LEKind, EM_X86_64};


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18661.52250.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160331/21cee00f/attachment.bin>


More information about the llvm-commits mailing list