summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-05 16:48:32 +0000
committerDan Gohman <gohman@apple.com>2008-05-05 16:48:32 +0000
commite3a63ba3cd3cf0595dfa3d632a3922142b2d24ef (patch)
tree85fd4579af014577fe8d710089a4f342a5b011d1 /llvm/lib
parent6fd71c651255b750de67ee25e0a2e91e61a23e11 (diff)
downloadbcm5719-llvm-e3a63ba3cd3cf0595dfa3d632a3922142b2d24ef.tar.gz
bcm5719-llvm-e3a63ba3cd3cf0595dfa3d632a3922142b2d24ef.zip
Fix a bug in the ELF writer that caused it to produce malformed
ELF headers. The ELF writer still isn't generally usable though. llvm-svn: 50652
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/ELFWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/ELFWriter.cpp b/llvm/lib/CodeGen/ELFWriter.cpp
index baba0551dd4..63fee3a8d74 100644
--- a/llvm/lib/CodeGen/ELFWriter.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud