diff options
author | Dan Gohman <gohman@apple.com> | 2008-05-05 16:48:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-05-05 16:48:32 +0000 |
commit | 87c3d4173e6aa565fec5473e646f686d62d94956 (patch) | |
tree | 39f0b32c03c0e23dc5d8e076cef4a7c58d81fa29 /lib/CodeGen/ELFWriter.cpp | |
parent | 600bf16cf7b1667f85c8531432aae0dd23d553ab (diff) |
Fix a bug in the ELF writer that caused it to produce malformed
ELF headers. The ELF writer still isn't generally usable though.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50652 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ELFWriter.cpp')
-rw-r--r-- | lib/CodeGen/ELFWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/ELFWriter.cpp b/lib/CodeGen/ELFWriter.cpp index baba0551dd..63fee3a8d7 100644 --- a/lib/CodeGen/ELFWriter.cpp +++ b/lib/CodeGen/ELFWriter.cpp @@ -229,7 +229,7 @@ bool ELFWriter::doInitialization(Module &M) { // 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 |