[PATCH] D13055: [ELF2] Handle -m option

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 06:08:30 PDT 2015


emaste added a subscriber: davide.

================
Comment at: ELF/Config.h:39
@@ -26,1 +38,3 @@
+  ELFKind ElfKind = ELF64LEKind;
+  uint16_t EMachine = llvm::ELF::EM_X86_64;
 };
----------------
Do we still need an EM_X86_64 default?

================
Comment at: test/elf2/emulation.s:1
@@ +1,2 @@
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %tx64
+# RUN: lld -flavor gnu2 -m elf_x86_64 %tx64 -o %t2x64
----------------
It would be nice to have some non-Linux triples as well (e.g. x86_64-unknown-freebsd). @davide or I could add some in a subsequent commit.


http://reviews.llvm.org/D13055





More information about the llvm-commits mailing list