Home | History | Annotate | Download | only in LD

Lines Matching refs:ELF

9 #include <llvm/Support/ELF.h>
25 using namespace llvm::ELF;
28 /// writeELF32Header - write ELF header
36 // ELF header must start from 0x0
79 /// writeELF64Header - write ELF header
87 // ELF header must start from 0x0
281 shstrtab.setType(llvm::ELF::SHT_STRTAB);
323 shstrtab.setType(llvm::ELF::SHT_STRTAB);
506 if (llvm::ELF::SHT_DYNSYM == pSection.type() ||
507 llvm::ELF::SHT_SYMTAB == pSection.type())
508 return sizeof(llvm::ELF::Elf32_Sym);
509 if (llvm::ELF::SHT_REL == pSection.type())
510 return sizeof(llvm::ELF::Elf32_Rel);
511 if (llvm::ELF::SHT_RELA == pSection.type())
512 return sizeof(llvm::ELF::Elf32_Rela);
513 if (llvm::ELF::SHT_HASH == pSection.type())
514 return sizeof(llvm::ELF::Elf32_Word);
515 if (llvm::ELF::SHT_DYNAMIC == pSection.type())
516 return sizeof(llvm::ELF::Elf32_Dyn);
523 if (llvm::ELF::SHT_DYNSYM == pSection.type() ||
524 llvm::ELF::SHT_SYMTAB == pSection.type())
525 return sizeof(llvm::ELF::Elf64_Sym);
526 if (llvm::ELF::SHT_REL == pSection.type())
527 return sizeof(llvm::ELF::Elf64_Rel);
528 if (llvm::ELF::SHT_RELA == pSection.type())
529 return sizeof(llvm::ELF::Elf64_Rela);
530 if (llvm::ELF::SHT_HASH == pSection.type())
531 return sizeof(llvm::ELF::Elf64_Word);
532 if (llvm::ELF::SHT_DYNAMIC == pSection.type())
533 return sizeof(llvm::ELF::Elf64_Dyn);
541 if (llvm::ELF::SHT_SYMTAB == pSection.type())
543 if (llvm::ELF::SHT_DYNSYM == pSection.type())
545 if (llvm::ELF::SHT_DYNAMIC == pSection.type())
547 if (llvm::ELF::SHT_HASH == pSection.type())
549 if (llvm::ELF::SHT_REL == pSection.type() ||
550 llvm::ELF::SHT_RELA == pSection.type()) {
556 return llvm::ELF::SHN_UNDEF;