Home
last modified time | relevance | path

Searched refs:sh_type (Results 1 – 25 of 91) sorted by relevance

1234

/external/elfutils/libelf/
Delf_compress_gnu.c60 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()
89 if (sh_type == SHT_NULL || sh_type == SHT_NOBITS) in elf_compress_gnu()
197 __libelf_data_type (elf, sh_type)); in elf_compress_gnu()
Delf-knowledge.h41 && (shdr)->sh_type != SHT_NOTE \
42 && (((shdr)->sh_type) != SHT_PROGBITS \
61 ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA \
Delf_compress.c345 Elf64_Word sh_type; in elf_compress() local
354 sh_type = shdr->sh_type; in elf_compress()
364 sh_type = shdr->sh_type; in elf_compress()
374 if (sh_type == SHT_NULL || sh_type == SHT_NOBITS) in elf_compress()
507 __libelf_data_type (elf, sh_type)); in elf_compress()
Delf32_getchdr.c57 if (shdr->sh_type == SHT_NULL in ElfW2()
58 || shdr->sh_type == SHT_NOBITS) in ElfW2()
Delf32_getshdr.c141 CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type); in ElfW2()
155 if (shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in ElfW2()
190 CONVERT (shdr[cnt].sh_type); in ElfW2()
Delf_getdata.c123 __libelf_data_type (Elf *elf, int sh_type) in __libelf_data_type() argument
127 if (sh_type == SHT_HASH && elf->class == ELFCLASS64) in __libelf_data_type()
134 return shtype_map[LIBELF_EV_IDX][TYPEIDX (sh_type)]; in __libelf_data_type()
239 type = shdr->sh_type; in __libelf_set_rawdata_wrlock()
254 type = shdr->sh_type; in __libelf_set_rawdata_wrlock()
/external/elfutils/libebl/
Deblcheckreloctargettype.c37 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()
Deblsectionstripp.c49 if (shdr->sh_type == SHT_RELA || shdr->sh_type == SHT_REL) in ebl_section_strip_p()
/external/llvm/include/llvm/Object/
DELFObjectFile.h252 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI()
253 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI()
372 return getSection(Sec)->sh_type; in getSectionType()
587 EShdr->sh_type == ELF::SHT_PROGBITS; in isSectionData()
594 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
599 return getSection(Sec)->sh_type == ELF::SHT_NOBITS; in isSectionVirtual()
611 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_begin()
619 uint32_t SymSecType = SymSec->sh_type; in section_rel_begin()
633 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end()
647 uintX_t Type = EShdr->sh_type; in getRelocatedSection()
[all …]
/external/elfutils/src/
Dunstrip.c357 switch (shdr->sh_type) in section_can_shrink()
439 switch (shdr->sh_type) in adjust_relocs()
578 if (shdr->sh_type != SHT_NOBITS && shdr->sh_link == new_sh_link) in adjust_all_relocs()
909 Elf64_Word sh_type) in sections_flags_match() argument
911 if (sh_type == SHT_REL || sh_type == SHT_RELA) in sections_flags_match()
926 sections[i].shdr.sh_type) in sections_match()
988 if (sec->shdr.sh_type == SHT_PROGBITS in find_alloc_sections_prelink()
1074 COPY (sh_type); in find_alloc_sections_prelink()
1169 && (((sec->shdr.sh_type == undo_sec->shdr.sh_type in find_alloc_sections_prelink()
1177 && undo_sec->shdr.sh_type == SHT_NOBITS) in find_alloc_sections_prelink()
[all …]
Dstrip.c658 if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_SYMTAB_SHNDX)) in handle_elf()
663 else if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_GROUP)) in handle_elf()
692 else if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_GNU_versym)) in handle_elf()
780 if (shdr_info[cnt].shdr.sh_type == SHT_REL in handle_elf()
781 || shdr_info[cnt].shdr.sh_type == SHT_RELA) in handle_elf()
791 if (shdr_info[cnt].shdr.sh_type == SHT_GROUP) in handle_elf()
818 && (shdr_info[cnt].shdr.sh_type == SHT_DYNSYM in handle_elf()
819 || shdr_info[cnt].shdr.sh_type == SHT_SYMTAB)) in handle_elf()
836 elf_assert (shdr_info[cnt].shdr.sh_type == SHT_SYMTAB); in handle_elf()
974 && shdr_info[cnt].shdr.sh_type != SHT_NOTE in handle_elf()
[all …]
Delfcmp.c303 if (shdr1->sh_type != shdr2->sh_type in main()
333 switch (shdr1->sh_type) in main()
507 assert (shdr1->sh_type == SHT_NOBITS in main()
509 assert (shdr2->sh_type == SHT_NOBITS in main()
513 || (shdr1->sh_type != SHT_NOBITS in main()
519 && shdr1->sh_type == SHT_HASH in main()
762 if ((shdr->sh_type != SHT_REL && shdr->sh_type != SHT_RELA) in search_for_copy_reloc()
772 if (shdr->sh_type == SHT_REL && shdr->sh_entsize != 0) in search_for_copy_reloc()
Delflint.c555 if (shdr->sh_type != SHT_GROUP) in check_scn_group()
604 if (strshdr->sh_type != SHT_STRTAB) in check_symtab()
625 if (xndxshdr->sh_type == SHT_SYMTAB_SHNDX in check_symtab()
1041 && shdr->sh_type == SHT_DYNSYM) in check_symtab()
1077 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0) in is_rel_dyn()
1245 if(! ebl_check_reloc_target_type (ebl, (*destshdrp)->sh_type)) in check_reloc_shdr()
1306 if (dynshdr != NULL && dynshdr->sh_type == SHT_DYNAMIC in check_reloc_shdr()
1640 if (strshdr != NULL && strshdr->sh_type != SHT_STRTAB) in check_dynamic()
1922 if (symshdr != NULL && symshdr->sh_type != SHT_SYMTAB) in check_symtab_shndx()
1956 if (rshdr != NULL && rshdr->sh_type == SHT_SYMTAB_SHNDX in check_symtab_shndx()
[all …]
Dfindtextrel.c274 switch (shdr->sh_type) in process_file()
415 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in process_file()
429 if (shdr->sh_type == SHT_REL) in process_file()
452 else if (shdr->sh_type == SHT_RELA) in process_file()
/external/elfutils/libdwelf/
Ddwelf_scn_gnu_compressed_size.c48 || shdr.sh_type == SHT_NULL in dwelf_scn_gnu_compressed_size()
49 || shdr.sh_type == SHT_NOBITS) in dwelf_scn_gnu_compressed_size()
/external/valgrind/VEX/unused/
Dlinker.c327 findElfSection ( void* objImage, Elf_Word sh_type ) in findElfSection() argument
337 if (shdr[i].sh_type == sh_type in findElfSection()
739 if (shdr[shnum].sh_type == SHT_REL ) { in ocResolve_ELF()
745 if (shdr[shnum].sh_type == SHT_RELA) { in ocResolve_ELF()
844 if (debug_linker>1) fprintf(stderr, "type=%2d ", (int)shdr[i].sh_type ); in ocVerifyImage_ELF()
851 if (shdr[i].sh_type == SHT_REL) { in ocVerifyImage_ELF()
853 } else if (shdr[i].sh_type == SHT_RELA) { in ocVerifyImage_ELF()
868 if (shdr[i].sh_type == SHT_STRTAB in ocVerifyImage_ELF()
889 if (shdr[i].sh_type != SHT_SYMTAB) continue; in ocVerifyImage_ELF()
980 if (hdr.sh_type == SHT_PROGBITS in ocGetNames_ELF()
[all …]
/external/valgrind/VEX/switchback/
Dlinker.c395 findElfSection ( void* objImage, Elf_Word sh_type )
405 if (shdr[i].sh_type == sh_type
899 if (shdr[shnum].sh_type == SHT_REL ) {
905 if (shdr[shnum].sh_type == SHT_RELA) {
1007 if (debug_linker>1) fprintf(stderr, "type=%2d ", (int)shdr[i].sh_type );
1014 if (shdr[i].sh_type == SHT_REL) {
1016 } else if (shdr[i].sh_type == SHT_RELA) {
1031 if (shdr[i].sh_type == SHT_STRTAB
1052 if (shdr[i].sh_type != SHT_SYMTAB) continue;
1143 if (hdr.sh_type == SHT_PROGBITS
[all …]
/external/elfutils/tests/
Dupdate4.c131 shdr->sh_type = SHT_PROGBITS; in main()
167 shdr->sh_type = SHT_PROGBITS; in main()
203 shdr->sh_type = SHT_PROGBITS; in main()
239 shdr->sh_type = SHT_NOBITS; in main()
276 shdr->sh_type = SHT_STRTAB; in main()
Delfstrmerge.c203 if (symtabshdr->sh_type == SHT_SYMTAB) in main()
285 GElf_Off off = shdr->sh_offset + (shdr->sh_type != SHT_NOBITS in main()
457 newshdr.sh_type = shdr->sh_type; in main()
501 switch (shdr->sh_type) in main()
609 if (newshdr.sh_type != SHT_NOBITS) in main()
Dsectiondump.c104 shdr->sh_type, in handle_section()
120 switch (shdr->sh_type) in handle_section()
/external/elfutils/libdwfl/
Drelocate.c128 if ((shdr->sh_type == SHT_SYMTAB in relocate_getsym()
129 || shdr->sh_type == SHT_SYMTAB_SHNDX) in relocate_getsym()
134 switch (shdr->sh_type) in relocate_getsym()
511 if (unlikely (tshdr->sh_type == SHT_NOBITS) in relocate_section()
587 = gelf_fsize (relocated, shdr->sh_type == SHT_REL ? ELF_T_REL : ELF_T_RELA, in relocate_section()
591 if (shdr->sh_type == SHT_REL) in relocate_section()
666 if (shdr->sh_type == SHT_REL) in relocate_section()
727 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in __libdwfl_relocate()
Dderelocate.c137 && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in cache_sections()
200 && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)) in cache_sections()
/external/elfutils/backends/
Darm_symbol.c128 arm_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type) in arm_check_reloc_target_type() argument
130 return sh_type == SHT_ARM_EXIDX; in arm_check_reloc_target_type()
Dia64_symbol.c154 ia64_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type) in ia64_check_reloc_target_type() argument
156 return sh_type == SHT_IA_64_UNWIND; in ia64_check_reloc_target_type()
/external/google-breakpad/src/common/linux/
Dsynth_elf_unittest.cc243 EXPECT_EQ(static_cast<unsigned int>(SHT_NULL), shdr[0].sh_type); in TYPED_TEST()
254 EXPECT_EQ(static_cast<unsigned int>(SHT_STRTAB), shdr[1].sh_type); in TYPED_TEST()
318 EXPECT_EQ(static_cast<unsigned int>(SHT_NULL), shdr[0].sh_type); in TYPED_TEST()
329 EXPECT_EQ(static_cast<unsigned int>(SHT_PROGBITS), shdr[1].sh_type); in TYPED_TEST()
340 EXPECT_EQ(static_cast<unsigned int>(SHT_NOBITS), shdr[2].sh_type); in TYPED_TEST()
351 EXPECT_EQ(static_cast<unsigned int>(SHT_STRTAB), shdr[3].sh_type); in TYPED_TEST()

1234