Lines Matching refs:runp
807 struct scninfo *runp; in find_section_group() local
809 for (runp = fileinfo->groups; runp != NULL; runp = runp->next) in find_section_group()
810 if (!runp->used) in find_section_group()
816 data = elf_getdata (runp->scn, NULL); in find_section_group()
823 assert (elf_getdata (runp->scn, data) == NULL); in find_section_group()
833 return runp; in find_section_group()
1038 struct scninfo *runp = queued->last; in add_section() local
1041 if (SCNINFO_SHDR (runp->shdr).sh_flags & SHF_GROUP) in add_section()
1044 = find_section_group (runp->fileinfo, in add_section()
1045 elf_ndxscn (runp->scn), in add_section()
1056 runp = runp->next; in add_section()
1058 while (runp != queued->last); in add_section()
1685 struct filename_list *runp; in ld_handle_filename_list() local
1688 for (runp = fnames; runp != NULL; runp = runp->next) in ld_handle_filename_list()
1693 curp = runp->real = ld_new_inputfile (runp->name, relocatable_file_type); in ld_handle_filename_list()
1696 curp->group_start = runp->group_start; in ld_handle_filename_list()
1697 curp->group_end = runp->group_end; in ld_handle_filename_list()
1700 curp->as_needed = runp->as_needed; in ld_handle_filename_list()
1712 runp = fnames; in ld_handle_filename_list()
1714 free (runp); in ld_handle_filename_list()
2264 struct usedfiles *runp = ld_state.archives; in ld_generic_file_process() local
2271 elf_end (runp->elf); in ld_generic_file_process()
2272 runp->elf = NULL; in ld_generic_file_process()
2274 runp = runp->next; in ld_generic_file_process()
2276 while (runp != fileinfo->next); in ld_generic_file_process()
2753 struct symbol *runp = ld_state.from_dso; in compute_copy_reloc_offset() local
2754 assert (runp != NULL); in compute_copy_reloc_offset()
2760 if (runp->need_copy) in compute_copy_reloc_offset()
2770 XElf_Off symalign = MAX (SCNINFO_SHDR (runp->file->scninfo[runp->scndx].shdr).sh_addralign, 1); in compute_copy_reloc_offset()
2777 runp->merge.value = offset; in compute_copy_reloc_offset()
2779 offset += runp->size; in compute_copy_reloc_offset()
2781 while ((runp = runp->next) != ld_state.from_dso); in compute_copy_reloc_offset()
2792 struct symbol *runp = ld_state.common_syms; in compute_common_symbol_offset() local
2793 assert (runp != NULL); in compute_common_symbol_offset()
2801 XElf_Off symalign = runp->merge.value; in compute_common_symbol_offset()
2809 runp->merge.value = offset; in compute_common_symbol_offset()
2811 offset += runp->size; in compute_common_symbol_offset()
2813 while ((runp = runp->next) != ld_state.common_syms); in compute_common_symbol_offset()
2834 struct scninfo *runp; in match_section() local
2860 runp = (*scnhead)->last->next; in match_section()
2867 const char *brfname = basename (runp->fileinfo->rfname); in match_section()
2872 if (!runp->used in match_section()
2880 notused = runp; in match_section()
2882 prevp = runp; in match_section()
2883 runp = runp->next; in match_section()
2884 if (runp == notused) in match_section()
2885 runp = NULL; in match_section()
2891 struct scninfo *found = runp; in match_section()
2894 if (prevp != runp) in match_section()
2895 runp = prevp->next = runp->next; in match_section()
2900 runp = NULL; in match_section()
2960 while (runp != NULL); in match_section()
3199 struct scninfo *runp; in ld_generic_create_sections() local
3206 runp = head->last; in ld_generic_create_sections()
3209 assert (runp->grpid != 0); in ld_generic_create_sections()
3211 here_groupidx = runp->fileinfo->scninfo[runp->grpid].outscnndx; in ld_generic_create_sections()
3215 while ((runp = runp->next) != head->last); in ld_generic_create_sections()
3240 elf_strptr (runp->fileinfo->elf, in ld_generic_create_sections()
3241 runp->fileinfo->shstrndx, in ld_generic_create_sections()
3242 SCNINFO_SHDR (runp->shdr).sh_name), in ld_generic_create_sections()
3246 = runp->fileinfo->scninfo[runp->grpid].symbols; in ld_generic_create_sections()
3268 runp = head->last; in ld_generic_create_sections()
3271 assert (runp->grpid != 0); in ld_generic_create_sections()
3273 if (runp->fileinfo->scninfo[runp->grpid].outscnndx == 0) in ld_generic_create_sections()
3274 runp->fileinfo->scninfo[runp->grpid].outscnndx = here_groupidx; in ld_generic_create_sections()
3276 assert (runp->fileinfo->scninfo[runp->grpid].outscnndx in ld_generic_create_sections()
3279 while ((runp = runp->next) != head->last); in ld_generic_create_sections()
3322 struct member *runp; in ld_generic_create_sections() local
3345 runp = groups->member->next; in ld_generic_create_sections()
3349 grpdata[cnt++] = runp->scn->scnidx; in ld_generic_create_sections()
3350 while ((runp = runp->next) != groups->member->next); in ld_generic_create_sections()
3763 allocate_version_names (struct usedfiles *runp, struct Ebl_Strtab *dynstrtab) in allocate_version_names() argument
3766 if (runp->status != opened || runp->verdefdata == NULL) in allocate_version_names()
3777 xelf_getverdef (runp->verdefdata, offset, def); in allocate_version_names()
3779 xelf_getverdaux (runp->verdefdata, offset + def->vd_aux, aux); in allocate_version_names()
3782 assert (def->vd_ndx <= runp->nverdef); in allocate_version_names()
3783 if (def->vd_ndx == 1 || runp->verdefused[def->vd_ndx] != 0) in allocate_version_names()
3785 runp->verdefent[def->vd_ndx] in allocate_version_names()
3786 = ebl_strtabadd (dynstrtab, elf_strptr (runp->elf, in allocate_version_names()
3787 runp->dynsymstridx, in allocate_version_names()
3791 runp->verdefused[def->vd_ndx] = ld_state.nextveridx++; in allocate_version_names()
3805 struct usedfiles *runp, int *ntotal) in create_verneed_data() argument
3817 if (runp->nverdefused == 0) in create_verneed_data()
3824 for (cnt = 2; cnt <= runp->nverdef; ++cnt) in create_verneed_data()
3825 if (runp->verdefused[cnt] != 0) in create_verneed_data()
3827 assert (runp->verdefent[cnt] != NULL); in create_verneed_data()
3836 vernaux.vna_hash = elf_hash (ebl_string (runp->verdefent[cnt])); in create_verneed_data()
3838 vernaux.vna_other = runp->verdefused[cnt]; in create_verneed_data()
3839 vernaux.vna_name = ebl_strtaboffset (runp->verdefent[cnt]); in create_verneed_data()
3851 verneed.vn_file = ebl_strtaboffset (runp->verdefent[1]); in create_verneed_data()
4441 struct scninfo *runp; in ld_generic_create_outfile() local
4800 runp = head->last->next; in ld_generic_create_outfile()
4801 if (runp->symbols == NULL) in ld_generic_create_outfile()
4806 head->symbols = runp->symbols; in ld_generic_create_outfile()
4808 while ((runp = runp->next) != head->last->next) in ld_generic_create_outfile()
4810 if (runp->symbols == NULL) in ld_generic_create_outfile()
4819 head->symbols->next_in_scn = runp->symbols->next_in_scn; in ld_generic_create_outfile()
4820 runp->symbols->next_in_scn = oldhead; in ld_generic_create_outfile()
4821 head->symbols = runp->symbols; in ld_generic_create_outfile()
4894 symrunp = runp->symbols; in ld_generic_create_outfile()
4901 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
4918 symrunp = runp->symbols; in ld_generic_create_outfile()
4962 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
4968 symrunp = runp->symbols; in ld_generic_create_outfile()
4975 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
4997 symrunp = runp->symbols; in ld_generic_create_outfile()
5041 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
5047 symrunp = runp->symbols; in ld_generic_create_outfile()
5054 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
5068 runp = head->last->next; in ld_generic_create_outfile()
5082 if (likely (runp->scn != NULL)) in ld_generic_create_outfile()
5084 data = elf_getdata (runp->scn, NULL); in ld_generic_create_outfile()
5092 assert (elf_getdata (runp->scn, data) == NULL); in ld_generic_create_outfile()
5097 assert (SCNINFO_SHDR (runp->shdr).sh_type == SHT_NOBITS); in ld_generic_create_outfile()
5102 outdata->d_size = SCNINFO_SHDR (runp->shdr).sh_size; in ld_generic_create_outfile()
5103 outdata->d_align = SCNINFO_SHDR (runp->shdr).sh_addralign; in ld_generic_create_outfile()
5110 runp->offset = offset; in ld_generic_create_outfile()
5111 runp->outscnndx = head->scnidx; in ld_generic_create_outfile()
5112 runp->allsectionsidx = cnt; in ld_generic_create_outfile()
5118 while ((runp = runp->next) != head->last->next); in ld_generic_create_outfile()
5438 struct usedfiles *runp; in ld_generic_create_outfile() local
5440 runp = ld_state.dsofiles->next; in ld_generic_create_outfile()
5442 allocate_version_names (runp, dynstrtab); in ld_generic_create_outfile()
5443 while ((runp = runp->next) != ld_state.dsofiles->next); in ld_generic_create_outfile()
5447 runp = ld_state.needed->next; in ld_generic_create_outfile()
5449 allocate_version_names (runp, dynstrtab); in ld_generic_create_outfile()
5450 while ((runp = runp->next) != ld_state.needed->next); in ld_generic_create_outfile()
5513 struct symbol *runp; in ld_generic_create_outfile() local
5519 runp = ld_state.from_dso; in ld_generic_create_outfile()
5525 if (runp->type == STT_FUNC) in ld_generic_create_outfile()
5528 runp->merge.value = plt_idx + 1; in ld_generic_create_outfile()
5538 sym->st_size = runp->size; in ld_generic_create_outfile()
5539 sym->st_info = XELF_ST_INFO (runp->weak ? STB_WEAK : STB_GLOBAL, in ld_generic_create_outfile()
5540 runp->type); in ld_generic_create_outfile()
5547 const char *name = runp->name; in ld_generic_create_outfile()
5550 if (runp->file->verdefdata != NULL) in ld_generic_create_outfile()
5555 (void) xelf_getversym_copy (runp->file->versymdata, runp->symidx, in ld_generic_create_outfile()
5562 = ebl_string (runp->file->verdefent[versym]); in ld_generic_create_outfile()
5575 runp->outsymidx = idx; in ld_generic_create_outfile()
5578 ndxtosym[idx] = runp; in ld_generic_create_outfile()
5580 while ((runp = runp->next) != ld_state.from_dso); in ld_generic_create_outfile()
5983 struct usedfiles *runp; in ld_generic_create_outfile() local
6006 runp = ld_state.dsofiles->next; in ld_generic_create_outfile()
6009 offset = create_verneed_data (offset, verneeddata, runp, in ld_generic_create_outfile()
6011 runp = runp->next; in ld_generic_create_outfile()
6013 while (ntotal > 0 && runp != ld_state.dsofiles->next); in ld_generic_create_outfile()
6017 runp = ld_state.needed->next; in ld_generic_create_outfile()
6020 offset = create_verneed_data (offset, verneeddata, runp, in ld_generic_create_outfile()
6022 runp = runp->next; in ld_generic_create_outfile()
6024 while (ntotal > 0 && runp != ld_state.needed->next); in ld_generic_create_outfile()
6677 struct usedfiles *runp = ld_state.dsofiles->next; in ld_generic_create_outfile() local
6680 if (runp->used || !runp->as_needed) in ld_generic_create_outfile()
6683 if (runp->lazyload) in ld_generic_create_outfile()
6689 ebl_strtaboffset (runp->sonameent)); in ld_generic_create_outfile()
6691 while ((runp = runp->next) != ld_state.dsofiles->next); in ld_generic_create_outfile()