[llvm-commits] [lld] r171693 - in /lld/trunk: lib/Driver/Targets.cpp test/elf/x86_64-kinds.test
Michael J. Spencer
bigcheesegs at gmail.com
Sun Jan 6 20:51:32 PST 2013
Author: mspencer
Date: Sun Jan 6 22:51:32 2013
New Revision: 171693
URL: http://llvm.org/viewvc/llvm-project?rev=171693&view=rev
Log:
[Driver] x86-64 should use ELF 64.
Modified:
lld/trunk/lib/Driver/Targets.cpp
lld/trunk/test/elf/x86_64-kinds.test
Modified: lld/trunk/lib/Driver/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/Targets.cpp?rev=171693&r1=171692&r2=171693&view=diff
==============================================================================
--- lld/trunk/lib/Driver/Targets.cpp (original)
+++ lld/trunk/lib/Driver/Targets.cpp Sun Jan 6 22:51:32 2013
@@ -118,7 +118,7 @@
struct WOpts : lld::WriterOptionsELF {
WOpts(StringRef entry) {
_endianness = llvm::support::little;
- _is64Bit = false;
+ _is64Bit = true;
_type = llvm::ELF::ET_EXEC;
_machine = llvm::ELF::EM_X86_64;
_entryPoint = entry;
Modified: lld/trunk/test/elf/x86_64-kinds.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/x86_64-kinds.test?rev=171693&r1=171692&r2=171693&view=diff
==============================================================================
--- lld/trunk/test/elf/x86_64-kinds.test (original)
+++ lld/trunk/test/elf/x86_64-kinds.test Sun Jan 6 22:51:32 2013
@@ -1 +1,4 @@
-RUN: lld -flavor core -target x86_64-linux
+RUN: lld -flavor ld -target x86_64-linux -o %t | llvm-objdump -p %t \
+RUN: | FileCheck %s
+
+CHECK: ELF64-x86-64
More information about the llvm-commits
mailing list