Lines Matching refs:hdr_info

219   struct eh_frame_hdr_info *hdr_info;  in _bfd_elf_discard_section_eh_frame()  local
242 hdr_info = &htab->eh_info; in _bfd_elf_discard_section_eh_frame()
275 make_relative = hdr_info->last_cie.make_relative; in _bfd_elf_discard_section_eh_frame()
276 make_lsda_relative = hdr_info->last_cie.make_lsda_relative; in _bfd_elf_discard_section_eh_frame()
375 && hdr_info->last_cie_sec in _bfd_elf_discard_section_eh_frame()
377 == hdr_info->last_cie_sec->output_section) in _bfd_elf_discard_section_eh_frame()
378 && cie_compare (&cie, &hdr_info->last_cie) == 0) in _bfd_elf_discard_section_eh_frame()
383 sec_info->entry[last_cie_ndx].sec = hdr_info->last_cie_sec; in _bfd_elf_discard_section_eh_frame()
385 = hdr_info->last_cie_offset; in _bfd_elf_discard_section_eh_frame()
389 hdr_info->last_cie = cie; in _bfd_elf_discard_section_eh_frame()
390 hdr_info->last_cie_sec = sec; in _bfd_elf_discard_section_eh_frame()
391 hdr_info->last_cie_offset = last_cie - ehbuf; in _bfd_elf_discard_section_eh_frame()
578 hdr_info->table = FALSE; in _bfd_elf_discard_section_eh_frame()
581 hdr_info->fde_count++; in _bfd_elf_discard_section_eh_frame()
638 if (hdr_info->last_cie_sec == sec) in _bfd_elf_discard_section_eh_frame()
641 == hdr_info->last_cie_offset); in _bfd_elf_discard_section_eh_frame()
642 hdr_info->last_cie_offset = sec_info->entry[last_cie_ndx].new_offset; in _bfd_elf_discard_section_eh_frame()
663 hdr_info->table = FALSE; in _bfd_elf_discard_section_eh_frame()
664 hdr_info->last_cie.hdr.length = 0; in _bfd_elf_discard_section_eh_frame()
676 struct eh_frame_hdr_info *hdr_info; in _bfd_elf_discard_section_eh_frame_hdr() local
680 hdr_info = &htab->eh_info; in _bfd_elf_discard_section_eh_frame_hdr()
681 sec = hdr_info->hdr_sec; in _bfd_elf_discard_section_eh_frame_hdr()
686 if (hdr_info->table) in _bfd_elf_discard_section_eh_frame_hdr()
687 sec->_cooked_size += 4 + hdr_info->fde_count * 8; in _bfd_elf_discard_section_eh_frame_hdr()
706 struct eh_frame_hdr_info *hdr_info; in _bfd_elf_maybe_strip_eh_frame_hdr() local
709 hdr_info = &htab->eh_info; in _bfd_elf_maybe_strip_eh_frame_hdr()
710 if (hdr_info->hdr_sec == NULL) in _bfd_elf_maybe_strip_eh_frame_hdr()
713 if (bfd_is_abs_section (hdr_info->hdr_sec->output_section)) in _bfd_elf_maybe_strip_eh_frame_hdr()
715 hdr_info->hdr_sec = NULL; in _bfd_elf_maybe_strip_eh_frame_hdr()
732 _bfd_strip_section_from_output (info, hdr_info->hdr_sec); in _bfd_elf_maybe_strip_eh_frame_hdr()
733 hdr_info->hdr_sec = NULL; in _bfd_elf_maybe_strip_eh_frame_hdr()
737 hdr_info->table = TRUE; in _bfd_elf_maybe_strip_eh_frame_hdr()
812 struct eh_frame_hdr_info *hdr_info; in _bfd_elf_write_section_eh_frame() local
827 hdr_info = &htab->eh_info; in _bfd_elf_write_section_eh_frame()
828 if (hdr_info->table && hdr_info->array == NULL) in _bfd_elf_write_section_eh_frame()
829 hdr_info->array in _bfd_elf_write_section_eh_frame()
830 = bfd_malloc (hdr_info->fde_count * sizeof(*hdr_info->array)); in _bfd_elf_write_section_eh_frame()
831 if (hdr_info->array == NULL) in _bfd_elf_write_section_eh_frame()
832 hdr_info = NULL; in _bfd_elf_write_section_eh_frame()
963 BFD_ASSERT (hdr_info == NULL); in _bfd_elf_write_section_eh_frame()
986 if (hdr_info) in _bfd_elf_write_section_eh_frame()
988 hdr_info->array[hdr_info->array_count].initial_loc = address; in _bfd_elf_write_section_eh_frame()
989 hdr_info->array[hdr_info->array_count++].fde in _bfd_elf_write_section_eh_frame()
1123 struct eh_frame_hdr_info *hdr_info; in _bfd_elf_write_section_eh_frame_hdr() local
1132 hdr_info = &htab->eh_info; in _bfd_elf_write_section_eh_frame_hdr()
1133 sec = hdr_info->hdr_sec; in _bfd_elf_write_section_eh_frame_hdr()
1138 if (hdr_info->array && hdr_info->array_count == hdr_info->fde_count) in _bfd_elf_write_section_eh_frame_hdr()
1139 size += 4 + hdr_info->fde_count * 8; in _bfd_elf_write_section_eh_frame_hdr()
1157 if (hdr_info->array && hdr_info->array_count == hdr_info->fde_count) in _bfd_elf_write_section_eh_frame_hdr()
1173 bfd_put_32 (abfd, hdr_info->fde_count, contents + EH_FRAME_HDR_SIZE); in _bfd_elf_write_section_eh_frame_hdr()
1174 qsort (hdr_info->array, hdr_info->fde_count, sizeof (*hdr_info->array), in _bfd_elf_write_section_eh_frame_hdr()
1176 for (i = 0; i < hdr_info->fde_count; i++) in _bfd_elf_write_section_eh_frame_hdr()
1179 hdr_info->array[i].initial_loc in _bfd_elf_write_section_eh_frame_hdr()
1183 hdr_info->array[i].fde - sec->output_section->vma, in _bfd_elf_write_section_eh_frame_hdr()