Lines Matching refs:ELF
149 if (llvm::ELF::PT_LOAD == (*seg)->type()) { in writeObject()
214 memcpy(header->e_ident, llvm::ELF::ElfMagic, llvm::ELF::EI_MAG3 + 1); in writeELFHeader()
216 header->e_ident[llvm::ELF::EI_CLASS] = in writeELFHeader()
217 (SIZE == 32) ? llvm::ELF::ELFCLASS32 : llvm::ELF::ELFCLASS64; in writeELFHeader()
218 header->e_ident[llvm::ELF::EI_DATA] = in writeELFHeader()
220 ? llvm::ELF::ELFDATA2LSB : llvm::ELF::ELFDATA2MSB; in writeELFHeader()
221 header->e_ident[llvm::ELF::EI_VERSION] = target().getInfo().ELFVersion(); in writeELFHeader()
222 header->e_ident[llvm::ELF::EI_OSABI] = target().getInfo().OSABI(); in writeELFHeader()
223 header->e_ident[llvm::ELF::EI_ABIVERSION] = target().getInfo().ABIVersion(); in writeELFHeader()
228 header->e_type = llvm::ELF::ET_REL; in writeELFHeader()
231 header->e_type = llvm::ELF::ET_DYN; in writeELFHeader()
234 header->e_type = llvm::ELF::ET_EXEC; in writeELFHeader()
239 header->e_type = llvm::ELF::ET_NONE; in writeELFHeader()
242 header->e_version = header->e_ident[llvm::ELF::EI_VERSION]; in writeELFHeader()
454 if (pSection.type() == llvm::ELF::SHT_REL) { in emitRelocation()
463 } else if (pSection.type() == llvm::ELF::SHT_RELA) { in emitRelocation()
570 if (llvm::ELF::SHT_DYNSYM == pSection.type() || in getSectEntrySize()
571 llvm::ELF::SHT_SYMTAB == pSection.type()) in getSectEntrySize()
573 if (llvm::ELF::SHT_REL == pSection.type()) in getSectEntrySize()
575 if (llvm::ELF::SHT_RELA == pSection.type()) in getSectEntrySize()
577 if (llvm::ELF::SHT_HASH == pSection.type() || in getSectEntrySize()
578 llvm::ELF::SHT_GNU_HASH == pSection.type()) in getSectEntrySize()
580 if (llvm::ELF::SHT_DYNAMIC == pSection.type()) in getSectEntrySize()
586 if (pSection.flag() & llvm::ELF::SHF_STRINGS) in getSectEntrySize()
594 if (llvm::ELF::SHT_SYMTAB == pSection.type()) in getSectLink()
596 if (llvm::ELF::SHT_DYNSYM == pSection.type()) in getSectLink()
598 if (llvm::ELF::SHT_DYNAMIC == pSection.type()) in getSectLink()
600 if (llvm::ELF::SHT_HASH == pSection.type() || in getSectLink()
601 llvm::ELF::SHT_GNU_HASH == pSection.type()) in getSectLink()
603 if (llvm::ELF::SHT_REL == pSection.type() || in getSectLink()
604 llvm::ELF::SHT_RELA == pSection.type()) { in getSectLink()
611 if (llvm::ELF::SHT_ARM_EXIDX == pSection.type()) in getSectLink()
613 return llvm::ELF::SHN_UNDEF; in getSectLink()
618 if (llvm::ELF::SHT_SYMTAB == pSection.type() || in getSectInfo()
619 llvm::ELF::SHT_DYNSYM == pSection.type()) in getSectInfo()
622 if (llvm::ELF::SHT_REL == pSection.type() || in getSectInfo()
623 llvm::ELF::SHT_RELA == pSection.type()) { in getSectInfo()