/third_party/elfutils/libelf/ |
H A D | elf_compress_gnu.c | 60 Elf64_Word sh_type; in elf_compress_gnu() local 69 sh_type = shdr->sh_type; in elf_compress_gnu() 79 sh_type = shdr->sh_type; in elf_compress_gnu() 91 if (sh_type == SHT_NULL || sh_type == SHT_NOBITS) in elf_compress_gnu() 200 __libelf_data_type (&ehdr, sh_type, in elf_compress_gnu()
|
H A D | elf-knowledge.h | 41 && (shdr)->sh_type != SHT_NOTE \ 42 && (((shdr)->sh_type) != SHT_PROGBITS \ 61 ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA \
|
H A D | elf_compress.c | 361 Elf64_Word sh_type; in elf_compress() local 370 sh_type = shdr->sh_type; in elf_compress() 380 sh_type = shdr->sh_type; in elf_compress() 390 if (sh_type == SHT_NULL || sh_type == SHT_NOBITS) in elf_compress() 523 __libelf_data_type (&ehdr, sh_type, in elf_compress()
|
H A D | elf32_getchdr.c | 57 if (shdr->sh_type == SHT_NULL in ElfW2() 58 || shdr->sh_type == SHT_NOBITS) in ElfW2()
|
H A D | elf32_getshdr.c | 139 CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type); in ElfW2() 153 if (shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in ElfW2() 188 CONVERT (shdr[cnt].sh_type); in ElfW2()
|
H A D | elf_getdata.c | 118 __libelf_data_type (GElf_Ehdr *ehdr, int sh_type, GElf_Xword align) in __libelf_data_type() argument 122 if (sh_type == SHT_HASH && ehdr->e_ident[EI_CLASS] == ELFCLASS64) in __libelf_data_type() 128 Elf_Type t = shtype_map[TYPEIDX (sh_type)]; in __libelf_data_type() 234 type = shdr->sh_type; in __libelf_set_rawdata_wrlock() 249 type = shdr->sh_type; in __libelf_set_rawdata_wrlock()
|
/third_party/elfutils/libebl/ |
H A D | eblcheckreloctargettype.c | 37 ebl_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type) in ebl_check_reloc_target_type() argument 39 if (ebl->check_reloc_target_type (ebl, sh_type)) in ebl_check_reloc_target_type() 42 switch (sh_type) in ebl_check_reloc_target_type()
|
H A D | eblsectionstripp.c | 49 if (shdr->sh_type == SHT_RELA || shdr->sh_type == SHT_REL) in ebl_section_strip_p()
|
/third_party/libbpf/src/ |
H A D | elf.c | 91 /* Return next ELF section of sh_type after scn, or first of that type if scn is NULL. */ 93 static Elf_Scn *elf_find_next_scn_by_type(Elf *elf, int sh_type, Elf_Scn *scn) in elf_find_next_scn_by_type() argument 100 if (sh.sh_type == sh_type) in elf_find_next_scn_by_type() 106 static psection_t elf_find_next_scn_by_type(pelfio_t pelfio, int sh_type, psection_t pscn) in elf_find_next_scn_by_type() argument 121 if (sec_type == sh_type) { in elf_find_next_scn_by_type() 129 static int elf_sym_iter_new(struct elf_sym_iter *iter,pelfio_t elf, const char *binary_path, int sh_type, int st_type) in elf_sym_iter_new() argument 133 pSec = elf_find_next_scn_by_type(elf, sh_type, NULL); in elf_sym_iter_new() 147 if (sh_type != SHT_DYNSYM) in elf_sym_iter_new() 174 sheader->sh_type in elf_sec_hdr_by_idx() 293 symbol_match(struct elf_sym_iter *iter, int sh_type, struct elf_sym *sym, const char *name, size_t name_len, const char *lib_ver) symbol_match() argument [all...] |
/third_party/libabigail/src/ |
H A D | abg-elf-helpers.cc | 339 /// Elf32_Shdr::sh_type (or Elf64_Shdr::sh_type) data member. 355 if (header == NULL || header->sh_type != section_type) in find_section() 372 /// Elf32_Shdr::sh_type (or Elf64_Shdr::sh_type) data member. 384 if (header->sh_type == section_type) in find_section() 492 if (section_header->sh_type != SHT_HASH in find_hash_table_section_index() 493 && section_header->sh_type != SHT_GNU_HASH) in find_hash_table_section_index() 499 if (section_header->sh_type == SHT_HASH) in find_hash_table_section_index() 501 else if (section_header->sh_type in find_hash_table_section_index() [all...] |
/third_party/elfutils/src/ |
H A D | unstrip.c | 367 switch (shdr->sh_type) in section_can_shrink() 455 switch (shdr->sh_type) in adjust_relocs() 615 if (shdr->sh_type != SHT_NOBITS && shdr->sh_type != SHT_GROUP in adjust_all_relocs() 969 Elf64_Word sh_type) in sections_flags_match() 971 if (sh_type == SHT_REL || sh_type == SHT_RELA) in sections_flags_match() 986 sections[i].shdr.sh_type) in sections_match() 1037 if (shdr->sh_type != SHT_GROUP) in get_group_sig() 1100 if (sec->shdr.sh_type in find_alloc_sections_prelink() 966 sections_flags_match(Elf64_Xword sh_flags1, Elf64_Xword sh_flags2, Elf64_Word sh_type) sections_flags_match() argument [all...] |
H A D | strip.c | 389 if (shdr != NULL && shdr->sh_type == SHT_SYMTAB) in get_xndxdata() 399 && xndxshdr->sh_type == SHT_SYMTAB_SHNDX in get_xndxdata() 579 && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)) in remove_debug_relocations() 588 || tshdr->sh_type == SHT_NOBITS in remove_debug_relocations() 645 const bool is_rela = (shdr->sh_type == SHT_RELA); in remove_debug_relocations() 898 GElf_Off filesz = (shdr.sh_type != SHT_NOBITS in handle_debug_relocs() 940 GElf_Off filesz = (shdr.sh_type != SHT_NOBITS in handle_debug_relocs() 1294 if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_SYMTAB_SHNDX)) in handle_elf() 1299 else if (unlikely (shdr_info[cnt].shdr.sh_type in handle_elf() [all...] |
H A D | elfcmp.c | 316 if (shdr1->sh_type != shdr2->sh_type in main() 346 switch (shdr1->sh_type) in main() 522 assert (shdr1->sh_type == SHT_NOBITS in main() 524 assert (shdr2->sh_type == SHT_NOBITS in main() 528 || (shdr1->sh_type != SHT_NOBITS in main() 534 && shdr1->sh_type == SHT_HASH in main() 763 if ((shdr->sh_type != SHT_REL && shdr->sh_type != SHT_RELA) in search_for_copy_reloc() 773 if (shdr->sh_type in search_for_copy_reloc() [all...] |
H A D | elflint.c | 571 if (shdr->sh_type != SHT_GROUP) in check_scn_group() 620 if (strshdr->sh_type != SHT_STRTAB) in check_symtab() 641 if (xndxshdr->sh_type == SHT_SYMTAB_SHNDX in check_symtab() 1061 && shdr->sh_type == SHT_DYNSYM) in check_symtab() 1097 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0) in is_rel_dyn() 1265 if(! ebl_check_reloc_target_type (ebl, (*destshdrp)->sh_type)) in check_reloc_shdr() 1326 if (dynshdr != NULL && dynshdr->sh_type == SHT_DYNAMIC in check_reloc_shdr() 1660 if (strshdr != NULL && strshdr->sh_type != SHT_STRTAB) in check_dynamic() 1942 if (symshdr != NULL && symshdr->sh_type != SHT_SYMTAB) in check_symtab_shndx() 1976 if (rshdr != NULL && rshdr->sh_type in check_symtab_shndx() [all...] |
H A D | findtextrel.c | 259 switch (shdr->sh_type) in process_file() 390 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in process_file() 404 if (shdr->sh_type == SHT_REL) in process_file() 428 else if (shdr->sh_type == SHT_RELA) in process_file()
|
/third_party/elfutils/libdwfl/ |
H A D | relocate.c | 135 if ((shdr->sh_type == SHT_SYMTAB in relocate_getsym() 136 || shdr->sh_type == SHT_SYMTAB_SHNDX) in relocate_getsym() 141 switch (shdr->sh_type) in relocate_getsym() 535 if (unlikely (tshdr->sh_type == SHT_NOBITS) in relocate_section() 626 = gelf_fsize (relocated, shdr->sh_type == SHT_REL ? ELF_T_REL : ELF_T_RELA, in relocate_section() 630 if (shdr->sh_type == SHT_REL) in relocate_section() 708 if (shdr->sh_type == SHT_REL) in relocate_section() 778 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in __libdwfl_relocate()
|
/third_party/elfutils/backends/ |
H A D | x86_64_symbol.c | 78 Elf64_Word sh_type) in x86_64_check_reloc_target_type() 80 return sh_type == SHT_X86_64_UNWIND; in x86_64_check_reloc_target_type() 77 x86_64_check_reloc_target_type(Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type) x86_64_check_reloc_target_type() argument
|
H A D | ia64_symbol.c | 155 ia64_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type) in ia64_check_reloc_target_type() argument 157 return sh_type == SHT_IA_64_UNWIND; in ia64_check_reloc_target_type()
|
H A D | arm_symbol.c | 132 arm_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type) in arm_check_reloc_target_type() argument 134 return sh_type == SHT_ARM_EXIDX; in arm_check_reloc_target_type()
|
/third_party/elfutils/libdwelf/ |
H A D | dwelf_scn_gnu_compressed_size.c | 48 || shdr.sh_type == SHT_NULL in dwelf_scn_gnu_compressed_size() 49 || shdr.sh_type == SHT_NOBITS) in dwelf_scn_gnu_compressed_size()
|
/third_party/elfutils/tests/ |
H A D | elfcopy.c | 208 GElf_Shdr last_shdr = { .sh_type = SHT_NULL }; in copy_elf() 223 if (last_shdr.sh_type != SHT_NULL in copy_elf() 226 && last_shdr.sh_type != SHT_NOBITS in copy_elf() 227 && shdr.sh_type != SHT_NOBITS in copy_elf() 238 last_shdr.sh_type = SHT_NULL; in copy_elf()
|
H A D | update4.c | 132 shdr->sh_type = SHT_PROGBITS; in main() 168 shdr->sh_type = SHT_PROGBITS; in main() 204 shdr->sh_type = SHT_PROGBITS; in main() 240 shdr->sh_type = SHT_NOBITS; in main() 277 shdr->sh_type = SHT_STRTAB; in main()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
H A D | ELFObjectFile.h | 321 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI() 322 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI() 374 if (Sec.sh_type == ELF::SHT_ARM_ATTRIBUTES) { 489 return getSection(Sec)->sh_type; in getSectionType() 726 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents() 754 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData() 763 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS() 777 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections() 797 return getSection(Sec)->sh_type == ELF::SHT_NOBITS; in isSectionVirtual() 810 return !isBerkeleyText(Sec) && EShdr->sh_type ! in isBerkeleyData() [all...] |
H A D | ELF.h | 237 assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE"); in notes_begin() 598 if (Section->sh_type != ELF::SHT_STRTAB) in getStringTable() 599 if (Error E = WarnHandler("invalid sh_type for string table section " + in getStringTable() 603 getHeader()->e_machine, Section->sh_type))) in getStringTable() 633 assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX); in getSHNDXTable() 642 if (SymTable.sh_type != ELF::SHT_SYMTAB && in getSHNDXTable() 643 SymTable.sh_type != ELF::SHT_DYNSYM) in getSHNDXTable() 646 SymTable.sh_type) + in getSHNDXTable() 672 if (Sec.sh_type != ELF::SHT_SYMTAB && Sec.sh_type ! in getStringTableForSymtab() [all...] |
/third_party/elfutils/libasm/ |
H A D | asm_end.c | 151 shdr->sh_type = SHT_STRTAB; in binary_end() 232 shdr->sh_type = SHT_SYMTAB_SHNDX; in binary_end() 275 shdr->sh_type = SHT_SYMTAB; in binary_end() 304 shdr->sh_type = SHT_STRTAB; in binary_end() 366 shdr->sh_type = SHT_GROUP; in binary_end()
|