[llvm-commits] [llvm] r50652 - /llvm/trunk/lib/CodeGen/ELFWriter.cpp
Dan Gohman
gohman at apple.com
Mon May 5 09:48:33 PDT 2008
Author: djg
Date: Mon May 5 11:48:32 2008
New Revision: 50652
URL: http://llvm.org/viewvc/llvm-project?rev=50652&view=rev
Log:
Fix a bug in the ELF writer that caused it to produce malformed
ELF headers. The ELF writer still isn't generally usable though.
Modified:
llvm/trunk/lib/CodeGen/ELFWriter.cpp
Modified: llvm/trunk/lib/CodeGen/ELFWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/ELFWriter.cpp?rev=50652&r1=50651&r2=50652&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/ELFWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/ELFWriter.cpp Mon May 5 11:48:32 2008
@@ -229,7 +229,7 @@
// This should change for shared objects.
FHOut.outhalf(1); // e_type = ET_REL
- FHOut.outword(TM.getELFWriterInfo()->getEMachine()); // target-defined
+ FHOut.outhalf(TM.getELFWriterInfo()->getEMachine()); // target-defined
FHOut.outword(1); // e_version = 1
FHOut.outaddr(0); // e_entry = 0 -> no entry point in .o file
FHOut.outaddr(0); // e_phoff = 0 -> no program header for .o
More information about the llvm-commits
mailing list