Home
last modified time | relevance | path

Searched refs:sh_size (Results 1 – 25 of 110) sorted by relevance

12345

/third_party/elfutils/libelf/
Delf_strptr.c120 size_t sh_size = 0; in elf_strptr() local
132 sh_size = shdr->sh_size; in elf_strptr()
137 sh_size = strscn->zdata_size; in elf_strptr()
140 if (unlikely (offset >= sh_size)) in elf_strptr()
158 sh_size = shdr->sh_size; in elf_strptr()
163 sh_size = strscn->zdata_size; in elf_strptr()
166 if (unlikely (offset >= sh_size)) in elf_strptr()
188 if (likely (validate_str (strscn->zdata_base, offset, sh_size))) in elf_strptr()
206 if (likely (validate_str (strscn->rawdata_base, offset, sh_size))) in elf_strptr()
Delf32_updatenull.c186 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, in __elfw2()
318 > shdr->sh_size)) in __elfw2()
348 ? shdr->sh_offset + shdr->sh_size : 0)); in __elfw2()
383 update_if_changed (shdr->sh_size, in __elfw2()
401 ElfW2(LIBELFBITS,SizeWord) sh_size; in __elfw2()
403 sh_size = shdr->sh_size; in __elfw2()
410 sh_size = chdr->ch_size; in __elfw2()
413 if (unlikely (sh_size % shdr->sh_entsize != 0)) in __elfw2()
Delf_compress_gnu.c126 shdr->sh_size = new_size; in elf_compress_gnu()
131 shdr->sh_size = new_size; in elf_compress_gnu()
191 shdr->sh_size = size; in elf_compress_gnu()
196 shdr->sh_size = size; in elf_compress_gnu()
Dgelf_update_shdr.c66 || unlikely (src->sh_size > 0xffffffffull) in gelf_update_shdr()
81 COPY (sh_size); in gelf_update_shdr()
Delf32_updatefile.c63 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
64 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
67 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size in compare_sections()
68 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) in compare_sections()
317 assert ((GElf_Off) dl->data.d.d_off <= shdr->sh_size); in __elfw2()
318 assert (dl->data.d.d_size <= (shdr->sh_size in __elfw2()
421 last_position = scn_start + shdr->sh_size; in __elfw2()
806 last_offset = scn_start + shdr->sh_size; in __elfw2()
Delf_compress.c458 shdr->sh_size = new_size; in elf_compress()
465 shdr->sh_size = new_size; in elf_compress()
509 shdr->sh_size = scn->zdata_size; in elf_compress()
516 shdr->sh_size = scn->zdata_size; in elf_compress()
/third_party/libunwind/src/
Delfxx.c75 if (str_shdr->sh_offset + str_shdr->sh_size > ei->size) in elf_w()
78 (unsigned long) (str_shdr->sh_offset + str_shdr->sh_size), in elf_w()
115 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size); in elf_w()
193 symtab_end = (Elf_W (Sym) *) ((char *) symtab + shdr->sh_size); in elf_w()
309 compressed_len = shdr->sh_size; in elf_w()
430 if (shdr->sh_offset + shdr->sh_size > ei->size) in Elf_W()
434 (unsigned long) shdr->sh_offset + shdr->sh_size, in Elf_W()
483 if (shdr->sh_size >= PATH_MAX || in elf_w()
484 (shdr->sh_offset + shdr->sh_size > ei->size)) in elf_w()
490 char linkbuf[shdr->sh_size]; in elf_w()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DELFEmitter.cpp367 To.sh_size = *From->ShSize; in overrideFields()
449 SHeader.sh_size = *RawSec->Size; in initSectionHeaders()
469 SHeader.sh_size = S->Size; in initSectionHeaders()
633 SHeader.sh_size = writeContent(OS, RawSec->Content, RawSec->Size); in initSymtabSectionHeader()
640 SHeader.sh_size = arrayDataSize(makeArrayRef(Syms)); in initSymtabSectionHeader()
658 SHeader.sh_size = writeContent(OS, RawSec->Content, RawSec->Size); in initStrtabSectionHeader()
661 SHeader.sh_size = STB.getSize(); in initStrtabSectionHeader()
700 Ret.push_back({H.sh_offset, H.sh_size, H.sh_type, H.sh_addralign}); in getPhdrFragments()
775 SHeader.sh_size = writeContent(OS, Section.Content, Section.Size); in writeSectionContent()
800 SHeader.sh_size = SHeader.sh_entsize * Section.Relocations.size(); in writeSectionContent()
[all …]
/third_party/elfutils/src/
Dunstrip.c429 newshdr->sh_size = data->d_size; in update_sh_size()
460 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
475 for (size_t i = 0; i < shdr->sh_size / shdr->sh_entsize; ++i) in adjust_relocs()
506 const size_t nsym = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
507 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
508 if (data->d_size != shdr->sh_size) in adjust_relocs()
567 const size_t nent = symshdr->sh_size / symshdr->sh_entsize; in adjust_relocs()
568 const size_t onent = shdr->sh_size / shdr->sh_entsize; in adjust_relocs()
635 const size_t nsym = shdr->sh_size / shdr->sh_entsize; in add_new_section_symbols()
639 shdr->sh_size += added * shdr->sh_entsize; in add_new_section_symbols()
[all …]
Delflint.c436 if (shdr->sh_size == 0) in check_elf_header()
440 shnum = shdr->sh_size; in check_elf_header()
660 else if (shdr->sh_info > shdr->sh_size / sh_entsize) in check_symtab()
698 for (size_t cnt = 1; cnt < shdr->sh_size / sh_entsize; ++cnt) in check_symtab()
711 else if (sym->st_name >= strshdr->sh_size) in check_symtab()
805 if (st_value - sh_addr > destshdr->sh_size) in check_symtab()
836 + sym->st_size) > destshdr->sh_size) in check_symtab()
855 if (st_value > destshdr->sh_size) in check_symtab()
861 > destshdr->sh_size) in check_symtab()
903 + destshdr->sh_size)) in check_symtab()
[all …]
Dsize.c441 digits - 2, shdr->sh_size, in show_sysv()
444 total += shdr->sh_size; in show_sysv()
492 shdr->sh_size, elf_strptr (elf, shstrndx, shdr->sh_name)); in show_sysv_one_line()
494 total += shdr->sh_size; in show_sysv_one_line()
538 textsize += shdr->sh_size; in show_bsd()
540 bsssize += shdr->sh_size; in show_bsd()
542 datasize += shdr->sh_size; in show_bsd()
Delfcompress.c237 float new = shdr->sh_size; in compress_section()
240 orig_size, shdr->sh_size, (new / orig) * 100); in compress_section()
514 ? shdr->sh_size : 0); in process_file()
668 uint64_t size = shdr->sh_size; in process_file()
908 size_t size = shdr->sh_size; in process_file()
1023 shdr->sh_size = data->d_size; in process_file()
1068 shstrtab_size = shdr->sh_size; in process_file()
1129 last_offset += shdr->sh_size; in process_file()
1209 symtab_size = shdr->sh_size; in process_file()
Dfindtextrel.c268 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
408 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
432 ? 0 : shdr->sh_size / shdr->sh_entsize); in process_file()
527 ? 0 : shdr->sh_size / shdr->sh_entsize); in check_rel()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
DIceELFSection.cpp30 Header.sh_size += MoreData.size(); in appendData()
38 Header.sh_size += MoreData.size(); in appendData()
43 Header.sh_size += NumBytes; in appendZeros()
55 Header.sh_size += RelocAddrSize; in appendRelocationOffset()
60 Elf64_Xword AlignDiff = Utils::OffsetToAlignment(Header.sh_size, Align); in padToAlignment()
65 Header.sh_size += AlignDiff; in padToAlignment()
DIceELFSection.h69 void setSize(Elf64_Xword sh_size) { Header.sh_size = sh_size; } in setSize() argument
70 SizeT getCurrentSize() const { return Header.sh_size; } in getCurrentSize()
322 Str.writeELFXword<IsELF64>(Header.sh_size); in writeHeader()
/third_party/elfutils/tests/
Delfputzdata.c94 size_t orig_size = shdr->sh_size; in main()
96 idx, name, shdr->sh_size); in main()
157 size_t new_size = newshdr->sh_size; in main()
210 size_t newer_size = newershdr->sh_size; in main()
Delfstrmerge.c328 ? shdr->sh_size : 0); in main()
366 if (newstrtabdata.d_size >= shdrstrshdr->sh_size + strtabshdr->sh_size) in main()
479 newshdr.sh_size = shdr->sh_size; in main()
607 newshdr.sh_size = newdata->d_size; in main()
622 last_offset += newshdr.sh_size; in main()
628 newshdr.sh_size = 0; in main()
Dasm-tst1.c213 if ((cnt != 3 && shdr->sh_size != 0) in main()
214 || (cnt == 3 && shdr->sh_size != 23)) in main()
/third_party/mesa3d/src/amd/common/
Dac_rgp_elf_object_pack.c443 sec_hdr[1].sh_size = sizeof(rgp_elf_strtab); in ac_rgp_file_write_elf_object()
449 sec_hdr[2].sh_offset = sec_hdr[1].sh_offset + sec_hdr[1].sh_size; in ac_rgp_file_write_elf_object()
450 sec_hdr[2].sh_size = text_size; in ac_rgp_file_write_elf_object()
456 ALIGN(sec_hdr[2].sh_size, 256); in ac_rgp_file_write_elf_object()
457 sec_hdr[3].sh_size = symbol_table_size; in ac_rgp_file_write_elf_object()
464 sec_hdr[4].sh_offset = sec_hdr[3].sh_offset + sec_hdr[3].sh_size; in ac_rgp_file_write_elf_object()
465 sec_hdr[4].sh_size = msgpack_size + in ac_rgp_file_write_elf_object()
Dac_rtld.c363 report_elf_if(shdr->sh_size & 3); in ac_rtld_open()
368 exec_size += shdr->sh_size; in ac_rtld_open()
373 pasted_text_size += shdr->sh_size; in ac_rtld_open()
378 rx_size += shdr->sh_size; in ac_rtld_open()
779 report_elf_if(!data || data->d_size != shdr->sh_size); in ac_rtld_upload()
780 memcpy(u->rx_ptr + s->offset, data->d_buf, shdr->sh_size); in ac_rtld_upload()
782 size = MAX2(size, s->offset + shdr->sh_size); in ac_rtld_upload()
802 report_elf_if(!relocs || relocs->d_size != shdr->sh_size); in ac_rtld_upload()
/third_party/elfutils/libdwfl/
Ddwfl_report_elf.c120 end = prev_shdr->sh_addr + prev_shdr->sh_size; in __libdwfl_elf_address_range()
131 end = shdr->sh_addr + shdr->sh_size; in __libdwfl_elf_address_range()
139 if (first || end < shdr->sh_addr + shdr->sh_size) in __libdwfl_elf_address_range()
140 end = shdr->sh_addr + shdr->sh_size; in __libdwfl_elf_address_range()
Drelocate.c536 || unlikely (tshdr->sh_size == 0)) in relocate_section()
586 if (unlikely (shdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
591 if (unlikely (shdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
605 if (unlikely (phdrs_start < shdr->sh_offset + shdr->sh_size in relocate_section()
610 if (unlikely (phdrs_start < tshdr->sh_offset + tshdr->sh_size in relocate_section()
628 size_t nrels = shdr->sh_size / sh_entsize; in relocate_section()
741 shdr->sh_size = reldata->d_size = nrels * sh_entsize; in relocate_section()
779 && shdr->sh_size != 0) in __libdwfl_relocate()
/third_party/libbpf/src/
Dlinker.c286 symtab->shdr->sh_size += sizeof(*sym); in add_new_sym()
376 sec->shdr->sh_size = sec->sec_sz = 0; in init_output_elf()
493 if (shdr->sh_type == SHT_PROGBITS && shdr->sh_size == 0 && in is_ignored_sec()
656 obj->btf = btf__new(data->d_buf, shdr->sh_size); in linker_load_obj_file()
666 obj->btf_ext = btf_ext__new(data->d_buf, shdr->sh_size); in linker_load_obj_file()
727 if (sec->shdr->sh_size != sec->data->d_size) in linker_sanity_check_elf()
740 if (sec->shdr->sh_size % sizeof(struct bpf_insn) != 0) in linker_sanity_check_elf()
771 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_symtab()
786 n = sec->shdr->sh_size / sec->shdr->sh_entsize; in linker_sanity_check_elf_symtab()
845 if (sec->shdr->sh_size % sec->shdr->sh_entsize != 0) in linker_sanity_check_elf_relos()
[all …]
/third_party/toybox/toys/posix/
Dfile.c157 int sh_size = elf_int(shdr+8+12*(bits+1), 4); local
169 while (sh_size >= 3*4) { // Don't try to read a truncated entry.
172 if (sh_offset+sh_size>TT.len) goto bad;
180 if (notesz > sh_size) goto bad;
198 sh_size -= notesz;
/third_party/skia/buildtools/third_party/eu-strip/
Dfix-elf-size.patch30 ? shdr->sh_offset + shdr->sh_size : 0));
46 e_shnum (or sh_size of the dummy, first section header)

12345