Commit b63b3dc756

Matt Whiteside <matt.whiteside@gmail.com>
2019-03-10 19:51:35
Add elf riscv32 and elf riscv64 as options in getLDMOption during construction of link job.
1 parent 3cdd2c0
Changed files (1)
src/link.cpp
@@ -627,6 +627,10 @@ static const char *getLDMOption(const ZigTarget *t) {
                 return "elf_x86_64_fbsd";
             }
             return "elf_x86_64";
+        case ZigLLVM_riscv32:
+            return "elf32lriscv";
+        case ZigLLVM_riscv64:
+            return "elf64lriscv";
         default:
             zig_unreachable();
     }