Lines Matching refs:sec

77 #define mmix_elf_section_data(sec) \
78 ((struct _mmix_elf_section_data *) elf_section_data (sec))
122 /* We attach this as mmix_elf_section_data (sec)->bpo in the linker-allocated
217 PARAMS ((bfd *abfd, asection *sec, struct bfd_link_info *link_info,
859 mmix_elf_new_section_hook (abfd, sec)
861 asection *sec;
869 sec->used_by_bfd = (PTR) sdata;
871 return _bfd_elf_new_section_hook (abfd, sec);
1357 asection *sec;
1385 sec = local_sections [r_symndx];
1386 rel->r_addend += sec->output_offset + sym->st_value;
1466 sec = NULL;
1471 sec = local_sections [r_symndx];
1472 relocation = _bfd_elf_rela_local_sym (output_bfd, sym, &sec, rel);
1478 name = bfd_section_name (input_bfd, sec);
1486 h, sec, relocation,
1493 rel->r_addend, relocation, name, sec);
1746 mmix_elf_gc_mark_hook (sec, info, rel, h, sym)
1747 asection *sec;
1777 return bfd_section_from_elf_index (sec->owner, sym->st_shndx);
1788 mmix_elf_gc_sweep_hook (abfd, info, sec, relocs)
1791 asection *sec ATTRIBUTE_UNUSED;
1795 = mmix_elf_section_data (sec)->bpo.reloc;
1849 mmix_elf_check_common_relocs (abfd, info, sec, relocs)
1852 asection *sec;
1868 rel_end = relocs + sec->reloc_count;
1934 * (sec->reloc_count + 1));
1937 mmix_elf_section_data (sec)->bpo.reloc = bpodata;
1956 mmix_elf_section_data (sec)->pjs.n_pushj_relocs++;
1963 if (mmix_elf_section_data (sec)->pjs.n_pushj_relocs != 0)
1967 mmix_elf_section_data (sec)->pjs.stub_size
1968 = bfd_alloc (abfd, mmix_elf_section_data (sec)->pjs.n_pushj_relocs
1969 * sizeof (mmix_elf_section_data (sec)
1971 if (mmix_elf_section_data (sec)->pjs.stub_size == NULL)
1974 for (i = 0; i < mmix_elf_section_data (sec)->pjs.n_pushj_relocs; i++)
1975 mmix_elf_section_data (sec)->pjs.stub_size[i] = MAX_PUSHJ_STUB_SIZE;
1984 mmix_elf_check_relocs (abfd, info, sec, relocs)
1987 asection *sec;
2003 qsort ((PTR) relocs, sec->reloc_count, sizeof (Elf_Internal_Rela),
2007 if (!mmix_elf_check_common_relocs (abfd, info, sec, relocs))
2013 rel_end = relocs + sec->reloc_count;
2030 if (!bfd_elf_gc_record_vtinherit (abfd, sec, h, rel->r_offset))
2037 if (!bfd_elf_gc_record_vtentry (abfd, sec, h, rel->r_addend))
2158 mmix_elf_section_from_bfd_section (abfd, sec, retval)
2160 asection * sec;
2163 if (strcmp (bfd_get_section_name (abfd, sec), MMIX_REG_SECTION_NAME) == 0)
2301 mmix_set_relaxable_size (abfd, sec, ptr)
2303 asection *sec;
2310 if (mmix_elf_section_data (sec)->pjs.n_pushj_relocs == 0)
2313 sec->rawsize = sec->size;
2314 sec->size += (mmix_elf_section_data (sec)->pjs.n_pushj_relocs
2319 if (info->relocatable && sec->output_section)
2320 mmix_elf_section_data (sec->output_section)->pjs.stubs_size_sum
2321 += (mmix_elf_section_data (sec)->pjs.n_pushj_relocs
2575 mmix_elf_relax_section (abfd, sec, link_info, again)
2577 asection *sec;
2587 = mmix_elf_section_data (sec)->bpo.reloc;
2594 bfd_size_type size = sec->rawsize ? sec->rawsize : sec->size;
2596 mmix_elf_section_data (sec)->pjs.stubs_size_sum = 0;
2603 if ((sec->flags & SEC_RELOC) == 0
2604 || sec->reloc_count == 0
2605 || (sec->flags & SEC_CODE) == 0
2606 || (sec->flags & SEC_LINKER_CREATED) != 0
2610 && mmix_elf_section_data (sec)->pjs.n_pushj_relocs == 0))
2628 = _bfd_elf_link_read_relocs (abfd, sec, (PTR) NULL,
2635 irelend = internal_relocs + sec->reloc_count;
2672 sec->output_section->rawsize
2673 + (mmix_elf_section_data (sec
2677 - (sec->output_offset + irel->r_offset)
2679 - (mmix_elf_section_data (sec)
2683 mmix_elf_section_data (sec)->pjs.stub_size[pjsno] = 0;
2685 mmix_elf_section_data (sec)->pjs.stubs_size_sum
2686 += mmix_elf_section_data (sec)->pjs.stub_size[pjsno];
2759 = (sec->output_section->vma
2760 + sec->output_offset
2763 = (sec->output_section->vma
2764 + sec->output_offset
2766 + mmix_elf_section_data (sec)->pjs.stubs_size_sum);
2775 ? mmix_elf_section_data (sec)
2780 mmix_elf_section_data (sec)->pjs.stub_size[pjsno] = 0;
2790 ? mmix_elf_section_data (sec)
2795 mmix_elf_section_data (sec)->pjs.stub_size[pjsno] = 4;
2800 mmix_elf_section_data (sec)->pjs.stub_size[pjsno]
2803 mmix_elf_section_data (sec)->pjs.stubs_size_sum
2804 += mmix_elf_section_data (sec)->pjs.stub_size[pjsno];
2891 && elf_section_data (sec)->relocs != internal_relocs)
2894 if (sec->size < size + mmix_elf_section_data (sec)->pjs.stubs_size_sum)
2897 if (sec->size > size + mmix_elf_section_data (sec)->pjs.stubs_size_sum)
2899 sec->size = size + mmix_elf_section_data (sec)->pjs.stubs_size_sum;
2909 && elf_section_data (sec)->relocs != internal_relocs)