Lines Matching refs:sec

86 #define mmix_elf_section_data(sec) \  argument
87 ((struct _mmix_elf_section_data *) elf_section_data (sec))
829 mmix_elf_new_section_hook (bfd *abfd, asection *sec) in mmix_elf_new_section_hook() argument
831 if (!sec->used_by_bfd) in mmix_elf_new_section_hook()
839 sec->used_by_bfd = sdata; in mmix_elf_new_section_hook()
842 return _bfd_elf_new_section_hook (abfd, sec); in mmix_elf_new_section_hook()
1379 asection *sec; in mmix_elf_relocate_section() local
1398 sec = NULL; in mmix_elf_relocate_section()
1403 sec = local_sections [r_symndx]; in mmix_elf_relocate_section()
1404 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel); in mmix_elf_relocate_section()
1410 name = bfd_section_name (input_bfd, sec); in mmix_elf_relocate_section()
1418 h, sec, relocation, in mmix_elf_relocate_section()
1424 if (sec != NULL && discarded_section (sec)) in mmix_elf_relocate_section()
1435 rel->r_addend += sec->output_offset; in mmix_elf_relocate_section()
1511 rel->r_addend, relocation, name, sec, NULL); in mmix_elf_relocate_section()
1759 mmix_elf_gc_mark_hook (asection *sec, in mmix_elf_gc_mark_hook() argument
1773 return _bfd_elf_gc_mark_hook (sec, info, rel, h, sym); in mmix_elf_gc_mark_hook()
1784 asection *sec, in mmix_elf_gc_sweep_hook() argument
1788 = mmix_elf_section_data (sec)->bpo.reloc; in mmix_elf_gc_sweep_hook()
1841 asection *sec, in mmix_elf_check_common_relocs() argument
1857 rel_end = relocs + sec->reloc_count; in mmix_elf_check_common_relocs()
1921 * (sec->reloc_count + 1)); in mmix_elf_check_common_relocs()
1924 mmix_elf_section_data (sec)->bpo.reloc = bpodata; in mmix_elf_check_common_relocs()
1943 mmix_elf_section_data (sec)->pjs.n_pushj_relocs++; in mmix_elf_check_common_relocs()
1950 if (mmix_elf_section_data (sec)->pjs.n_pushj_relocs != 0) in mmix_elf_check_common_relocs()
1954 mmix_elf_section_data (sec)->pjs.stub_size in mmix_elf_check_common_relocs()
1955 = bfd_alloc (abfd, mmix_elf_section_data (sec)->pjs.n_pushj_relocs in mmix_elf_check_common_relocs()
1956 * sizeof (mmix_elf_section_data (sec) in mmix_elf_check_common_relocs()
1958 if (mmix_elf_section_data (sec)->pjs.stub_size == NULL) in mmix_elf_check_common_relocs()
1961 for (i = 0; i < mmix_elf_section_data (sec)->pjs.n_pushj_relocs; i++) in mmix_elf_check_common_relocs()
1962 mmix_elf_section_data (sec)->pjs.stub_size[i] = MAX_PUSHJ_STUB_SIZE; in mmix_elf_check_common_relocs()
1973 asection *sec, in mmix_elf_check_relocs() argument
1986 qsort ((void *) relocs, sec->reloc_count, sizeof (Elf_Internal_Rela), in mmix_elf_check_relocs()
1990 if (!mmix_elf_check_common_relocs (abfd, info, sec, relocs)) in mmix_elf_check_relocs()
1996 rel_end = relocs + sec->reloc_count; in mmix_elf_check_relocs()
2022 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset)) in mmix_elf_check_relocs()
2031 && !bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend)) in mmix_elf_check_relocs()
2149 asection * sec, in mmix_elf_section_from_bfd_section() argument
2152 if (strcmp (bfd_get_section_name (abfd, sec), MMIX_REG_SECTION_NAME) == 0) in mmix_elf_section_from_bfd_section()
2286 asection *sec, in mmix_set_relaxable_size() argument
2293 if (mmix_elf_section_data (sec)->pjs.n_pushj_relocs == 0) in mmix_set_relaxable_size()
2296 sec->rawsize = sec->size; in mmix_set_relaxable_size()
2297 sec->size += (mmix_elf_section_data (sec)->pjs.n_pushj_relocs in mmix_set_relaxable_size()
2302 if (info->relocatable && sec->output_section) in mmix_set_relaxable_size()
2303 mmix_elf_section_data (sec->output_section)->pjs.stubs_size_sum in mmix_set_relaxable_size()
2304 += (mmix_elf_section_data (sec)->pjs.n_pushj_relocs in mmix_set_relaxable_size()
2554 asection *sec, in mmix_elf_relax_section() argument
2564 = mmix_elf_section_data (sec)->bpo.reloc; in mmix_elf_relax_section()
2570 bfd_size_type size = sec->rawsize ? sec->rawsize : sec->size; in mmix_elf_relax_section()
2572 mmix_elf_section_data (sec)->pjs.stubs_size_sum = 0; in mmix_elf_relax_section()
2579 if ((sec->flags & SEC_RELOC) == 0 in mmix_elf_relax_section()
2580 || sec->reloc_count == 0 in mmix_elf_relax_section()
2581 || (sec->flags & SEC_CODE) == 0 in mmix_elf_relax_section()
2582 || (sec->flags & SEC_LINKER_CREATED) != 0 in mmix_elf_relax_section()
2586 && mmix_elf_section_data (sec)->pjs.n_pushj_relocs == 0)) in mmix_elf_relax_section()
2602 = _bfd_elf_link_read_relocs (abfd, sec, NULL, in mmix_elf_relax_section()
2609 irelend = internal_relocs + sec->reloc_count; in mmix_elf_relax_section()
2646 sec->output_section->rawsize in mmix_elf_relax_section()
2647 + (mmix_elf_section_data (sec in mmix_elf_relax_section()
2651 - (sec->output_offset + irel->r_offset) in mmix_elf_relax_section()
2653 - (mmix_elf_section_data (sec) in mmix_elf_relax_section()
2657 mmix_elf_section_data (sec)->pjs.stub_size[pjsno] = 0; in mmix_elf_relax_section()
2659 mmix_elf_section_data (sec)->pjs.stubs_size_sum in mmix_elf_relax_section()
2660 += mmix_elf_section_data (sec)->pjs.stub_size[pjsno]; in mmix_elf_relax_section()
2733 = (sec->output_section->vma in mmix_elf_relax_section()
2734 + sec->output_offset in mmix_elf_relax_section()
2737 = (sec->output_section->vma in mmix_elf_relax_section()
2738 + sec->output_offset in mmix_elf_relax_section()
2740 + mmix_elf_section_data (sec)->pjs.stubs_size_sum); in mmix_elf_relax_section()
2749 ? mmix_elf_section_data (sec) in mmix_elf_relax_section()
2754 mmix_elf_section_data (sec)->pjs.stub_size[pjsno] = 0; in mmix_elf_relax_section()
2764 ? mmix_elf_section_data (sec) in mmix_elf_relax_section()
2769 mmix_elf_section_data (sec)->pjs.stub_size[pjsno] = 4; in mmix_elf_relax_section()
2774 mmix_elf_section_data (sec)->pjs.stub_size[pjsno] in mmix_elf_relax_section()
2777 mmix_elf_section_data (sec)->pjs.stubs_size_sum in mmix_elf_relax_section()
2778 += mmix_elf_section_data (sec)->pjs.stub_size[pjsno]; in mmix_elf_relax_section()
2865 && elf_section_data (sec)->relocs != internal_relocs) in mmix_elf_relax_section()
2868 if (sec->size < size + mmix_elf_section_data (sec)->pjs.stubs_size_sum) in mmix_elf_relax_section()
2871 if (sec->size > size + mmix_elf_section_data (sec)->pjs.stubs_size_sum) in mmix_elf_relax_section()
2873 sec->size = size + mmix_elf_section_data (sec)->pjs.stubs_size_sum; in mmix_elf_relax_section()
2883 && elf_section_data (sec)->relocs != internal_relocs) in mmix_elf_relax_section()