diff options
author | Sean Silva <silvas@purdue.edu> | 2013-06-19 00:55:28 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2013-06-19 00:55:28 +0000 |
commit | 8432251a9f9248958552bb9d6aeeb6d5913b0c01 (patch) | |
tree | 108539acb5f771e0c637c265a1f9a31e669c47a7 /llvm/tools/yaml2obj | |
parent | 8870a7e6583b58cf57da44a9e8b3426a980e2540 (diff) | |
download | bcm5719-llvm-8432251a9f9248958552bb9d6aeeb6d5913b0c01.tar.gz bcm5719-llvm-8432251a9f9248958552bb9d6aeeb6d5913b0c01.zip |
[yaml2obj][ELF] Support ELFOSABI_* enum.
llvm-svn: 184268
Diffstat (limited to 'llvm/tools/yaml2obj')
-rw-r--r-- | llvm/tools/yaml2obj/yaml2elf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/tools/yaml2obj/yaml2elf.cpp b/llvm/tools/yaml2obj/yaml2elf.cpp index 942e75904ef..f3b82b14828 100644 --- a/llvm/tools/yaml2obj/yaml2elf.cpp +++ b/llvm/tools/yaml2obj/yaml2elf.cpp @@ -194,8 +194,7 @@ static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) { bool IsLittleEndian = ELFT::TargetEndianness == support::little; Header.e_ident[EI_DATA] = IsLittleEndian ? ELFDATA2LSB : ELFDATA2MSB; Header.e_ident[EI_VERSION] = EV_CURRENT; - // TODO: Implement ELF_ELFOSABI enum. - Header.e_ident[EI_OSABI] = ELFOSABI_NONE; + Header.e_ident[EI_OSABI] = Hdr.OSABI; Header.e_ident[EI_ABIVERSION] = 0; Header.e_type = Hdr.Type; Header.e_machine = Hdr.Machine; |