Lines Matching refs:sh_size

269       shstrtabsize = i_shdrp[shindex]->sh_size;  in bfd_elf_get_str_section()
309 if (strindex >= hdr->sh_size) in bfd_elf_string_from_elf_section()
314 abfd, strindex, (unsigned long) hdr->sh_size, in bfd_elf_string_from_elf_section()
379 if (shndx_hdr == NULL || shndx_hdr->sh_size == 0) in bfd_elf_get_elf_syms()
516 && (shdr)->sh_size >= (2 * GRP_ENTRY_SIZE) \ in setup_group()
518 && ((shdr)->sh_size % GRP_ENTRY_SIZE) == 0) in setup_group()
561 amt = shdr->sh_size * sizeof (*dest) / 4; in setup_group()
562 shdr->contents = bfd_alloc2 (abfd, shdr->sh_size, in setup_group()
568 (_("%B: Corrupt size field in group section header: 0x%lx"), abfd, shdr->sh_size); in setup_group()
576 || (bfd_bread (shdr->contents, shdr->sh_size, abfd) in setup_group()
577 != shdr->sh_size)) in setup_group()
584 src = shdr->contents + shdr->sh_size; in setup_group()
622 unsigned int n_elt = shdr->sh_size / 4; in setup_group()
635 n_elt = shdr->sh_size / 4; in setup_group()
738 unsigned int n_elt = shdr->sh_size / 4; in _bfd_elf_setup_sections()
810 || ! bfd_set_section_size (abfd, newsect, hdr->sh_size) in _bfd_elf_make_section_from_shdr()
936 && (hdr->sh_offset + hdr->sh_size in _bfd_elf_make_section_from_shdr()
939 || (hdr->sh_offset + hdr->sh_size in _bfd_elf_make_section_from_shdr()
961 && (hdr->sh_addr + hdr->sh_size in _bfd_elf_make_section_from_shdr()
2141 if (hdr->sh_size != 0) in bfd_section_from_shdr()
2181 unsigned int n_elt = hdr->sh_size / GRP_ENTRY_SIZE; in bfd_section_from_shdr()
2751 rel_hdr->sh_size = 0; in _bfd_elf_init_reloc_shdr()
2793 this_hdr->sh_size = asect->size; in elf_fake_sections()
2912 this_hdr->sh_size = 0; in elf_fake_sections()
2915 this_hdr->sh_size = o->offset + o->size; in elf_fake_sections()
2916 if (this_hdr->sh_size != 0) in elf_fake_sections()
3135 t->shstrtab_hdr.sh_size = _bfd_elf_strtab_size (elf_shstrtab (abfd)); in assign_section_numbers()
3542 offset += i_shdrp->sh_size; in _bfd_elf_assign_file_position_for_section()
3603 shstrtab_hdr->sh_size = _bfd_elf_strtab_size (elf_shstrtab (abfd)); in _bfd_elf_compute_section_file_positions()
3624 if (hdr->sh_size != 0) in _bfd_elf_compute_section_file_positions()
4603 off += this_hdr->sh_size; in assign_file_positions_for_load_sections()
4604 p->p_filesz = this_hdr->sh_size; in assign_file_positions_for_load_sections()
4623 off += this_hdr->sh_size; in assign_file_positions_for_load_sections()
4628 p->p_filesz += this_hdr->sh_size; in assign_file_positions_for_load_sections()
4633 p->p_memsz += this_hdr->sh_size; in assign_file_positions_for_load_sections()
4638 p->p_memsz += this_hdr->sh_size; in assign_file_positions_for_load_sections()
4643 p->p_memsz += this_hdr->sh_size; in assign_file_positions_for_load_sections()
4676 if (this_hdr->sh_size != 0 in assign_file_positions_for_load_sections()
4727 if (hdr->sh_size != 0) in assign_file_positions_for_non_load_sections()
4735 if ((abfd->flags & D_PAGED) != 0 && hdr->sh_size != 0) in assign_file_positions_for_non_load_sections()
4809 p->p_filesz += hdr->sh_size; in assign_file_positions_for_non_load_sections()
5116 bfd_size_type amt = i_shdrp[count]->sh_size; in _bfd_elf_write_object_contents()
6273 symtab_hdr->sh_size = symtab_hdr->sh_entsize * (symcount + 1); in swap_out_syms()
6303 symtab_shndx_hdr->sh_size = amt; in swap_out_syms()
6517 symstrtab_hdr->sh_size = _bfd_stringtab_size (stt); in swap_out_syms()
6543 symcount = hdr->sh_size / get_elf_backend_data (abfd)->s->sizeof_sym; in _bfd_elf_get_symtab_upper_bound()
6564 symcount = hdr->sh_size / get_elf_backend_data (abfd)->s->sizeof_sym; in _bfd_elf_get_dynamic_symtab_upper_bound()
6730 contents = bfd_malloc (hdr->sh_size); in _bfd_elf_slurp_version_tables()
6739 || bfd_bread (contents, hdr->sh_size, abfd) != hdr->sh_size) in _bfd_elf_slurp_version_tables()
6742 if (hdr->sh_info && hdr->sh_size < sizeof (Elf_External_Verneed)) in _bfd_elf_slurp_version_tables()
6747 contents_end = contents + hdr->sh_size - sizeof (Elf_External_Verneed); in _bfd_elf_slurp_version_tables()
6839 contents = bfd_malloc (hdr->sh_size); in _bfd_elf_slurp_version_tables()
6843 || bfd_bread (contents, hdr->sh_size, abfd) != hdr->sh_size) in _bfd_elf_slurp_version_tables()
6846 if (hdr->sh_info && hdr->sh_size < sizeof (Elf_External_Verdef)) in _bfd_elf_slurp_version_tables()
6851 contents_end_def = contents + hdr->sh_size in _bfd_elf_slurp_version_tables()
6853 contents_end_aux = contents + hdr->sh_size in _bfd_elf_slurp_version_tables()
9022 symcount1 = hdr1->sh_size / bed1->s->sizeof_sym; in bfd_elf_match_symbols_in_sections()
9024 symcount2 = hdr2->sh_size / bed2->s->sizeof_sym; in bfd_elf_match_symbols_in_sections()