• Home
  • Raw
  • Download

Lines Matching refs:runp

746   struct scninfo *runp;  in find_section_group()  local
748 for (runp = fileinfo->groups; runp != NULL; runp = runp->next) in find_section_group()
749 if (!runp->used) in find_section_group()
755 data = elf_getdata (runp->scn, NULL); in find_section_group()
762 assert (elf_getdata (runp->scn, data) == NULL); in find_section_group()
772 return runp; in find_section_group()
1514 struct filename_list *runp; in ld_handle_filename_list() local
1517 for (runp = fnames; runp != NULL; runp = runp->next) in ld_handle_filename_list()
1522 curp = runp->real = ld_new_inputfile (runp->name, relocatable_file_type); in ld_handle_filename_list()
1525 runp->real->group_start = runp->group_start; in ld_handle_filename_list()
1526 runp->real->group_end = runp->group_end; in ld_handle_filename_list()
1538 runp = fnames; in ld_handle_filename_list()
1540 free (runp); in ld_handle_filename_list()
2065 struct usedfiles *runp = ld_state.archives; in ld_generic_file_process() local
2072 elf_end (runp->elf); in ld_generic_file_process()
2073 runp->elf = NULL; in ld_generic_file_process()
2075 runp = runp->next; in ld_generic_file_process()
2077 while (runp != fileinfo->next); in ld_generic_file_process()
2540 struct symbol *runp = ld_state.from_dso; in compute_copy_reloc_offset() local
2541 assert (runp != NULL); in compute_copy_reloc_offset()
2547 if (runp->need_copy) in compute_copy_reloc_offset()
2557 XElf_Off symalign = MAX (SCNINFO_SHDR (runp->file->scninfo[runp->scndx].shdr).sh_addralign, 1); in compute_copy_reloc_offset()
2564 runp->merge.value = offset; in compute_copy_reloc_offset()
2566 offset += runp->size; in compute_copy_reloc_offset()
2568 while ((runp = runp->next) != ld_state.from_dso); in compute_copy_reloc_offset()
2579 struct symbol *runp = ld_state.common_syms; in compute_common_symbol_offset() local
2580 assert (runp != NULL); in compute_common_symbol_offset()
2588 XElf_Off symalign = runp->merge.value; in compute_common_symbol_offset()
2596 runp->merge.value = offset; in compute_common_symbol_offset()
2598 offset += runp->size; in compute_common_symbol_offset()
2600 while ((runp = runp->next) != ld_state.common_syms); in compute_common_symbol_offset()
2621 struct scninfo *runp; in match_section() local
2647 runp = (*scnhead)->last->next; in match_section()
2654 const char *brfname = basename (runp->fileinfo->rfname); in match_section()
2659 if (!runp->used in match_section()
2667 notused = runp; in match_section()
2669 prevp = runp; in match_section()
2670 runp = runp->next; in match_section()
2671 if (runp == notused) in match_section()
2672 runp = NULL; in match_section()
2678 struct scninfo *found = runp; in match_section()
2681 if (prevp != runp) in match_section()
2682 runp = prevp->next = runp->next; in match_section()
2687 runp = NULL; in match_section()
2742 while (runp != NULL); in match_section()
2981 struct scninfo *runp; in ld_generic_create_sections() local
2988 runp = head->last; in ld_generic_create_sections()
2991 assert (runp->grpid != 0); in ld_generic_create_sections()
2993 here_groupidx = runp->fileinfo->scninfo[runp->grpid].outscnndx; in ld_generic_create_sections()
2997 while ((runp = runp->next) != head->last); in ld_generic_create_sections()
3022 elf_strptr (runp->fileinfo->elf, in ld_generic_create_sections()
3023 runp->fileinfo->shstrndx, in ld_generic_create_sections()
3024 SCNINFO_SHDR (runp->shdr).sh_name), in ld_generic_create_sections()
3028 = runp->fileinfo->scninfo[runp->grpid].symbols; in ld_generic_create_sections()
3050 runp = head->last; in ld_generic_create_sections()
3053 assert (runp->grpid != 0); in ld_generic_create_sections()
3055 if (runp->fileinfo->scninfo[runp->grpid].outscnndx == 0) in ld_generic_create_sections()
3056 runp->fileinfo->scninfo[runp->grpid].outscnndx = here_groupidx; in ld_generic_create_sections()
3058 assert (runp->fileinfo->scninfo[runp->grpid].outscnndx in ld_generic_create_sections()
3061 while ((runp = runp->next) != head->last); in ld_generic_create_sections()
3104 struct member *runp; in ld_generic_create_sections() local
3127 runp = groups->member->next; in ld_generic_create_sections()
3131 grpdata[cnt++] = runp->scn->scnidx; in ld_generic_create_sections()
3132 while ((runp = runp->next) != groups->member->next); in ld_generic_create_sections()
3531 allocate_version_names (struct usedfiles *runp, struct Ebl_Strtab *dynstrtab) in allocate_version_names() argument
3534 if (runp->status != opened || runp->verdefdata == NULL) in allocate_version_names()
3545 xelf_getverdef (runp->verdefdata, offset, def); in allocate_version_names()
3547 xelf_getverdaux (runp->verdefdata, offset + def->vd_aux, aux); in allocate_version_names()
3550 assert (def->vd_ndx <= runp->nverdef); in allocate_version_names()
3551 if (def->vd_ndx == 1 || runp->verdefused[def->vd_ndx] != 0) in allocate_version_names()
3553 runp->verdefent[def->vd_ndx] in allocate_version_names()
3554 = ebl_strtabadd (dynstrtab, elf_strptr (runp->elf, in allocate_version_names()
3555 runp->dynsymstridx, in allocate_version_names()
3559 runp->verdefused[def->vd_ndx] = ld_state.nextveridx++; in allocate_version_names()
3573 struct usedfiles *runp, int *ntotal) in create_verneed_data() argument
3585 if (runp->nverdefused == 0) in create_verneed_data()
3593 for (cnt = 2; cnt <= runp->nverdef; ++cnt) in create_verneed_data()
3594 if (runp->verdefused[cnt] != 0) in create_verneed_data()
3596 assert (runp->verdefent[cnt] != NULL); in create_verneed_data()
3607 = elf_hash (ebl_string (runp->verdefent[cnt])); in create_verneed_data()
3609 vernaux.vna_other = runp->verdefused[cnt]; in create_verneed_data()
3610 vernaux.vna_name = ebl_strtaboffset (runp->verdefent[cnt]); in create_verneed_data()
3622 verneed.vn_file = ebl_strtaboffset (runp->verdefent[1]); in create_verneed_data()
3783 struct scninfo *runp; in ld_generic_create_outfile() local
4113 runp = head->last->next; in ld_generic_create_outfile()
4114 if (runp->symbols == NULL) in ld_generic_create_outfile()
4119 head->symbols = runp->symbols; in ld_generic_create_outfile()
4121 while ((runp = runp->next) != head->last->next) in ld_generic_create_outfile()
4123 if (runp->symbols == NULL) in ld_generic_create_outfile()
4132 head->symbols->next_in_scn = runp->symbols->next_in_scn; in ld_generic_create_outfile()
4133 runp->symbols->next_in_scn = oldhead; in ld_generic_create_outfile()
4134 head->symbols = runp->symbols; in ld_generic_create_outfile()
4207 symrunp = runp->symbols; in ld_generic_create_outfile()
4214 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
4231 symrunp = runp->symbols; in ld_generic_create_outfile()
4275 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
4281 symrunp = runp->symbols; in ld_generic_create_outfile()
4288 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
4310 symrunp = runp->symbols; in ld_generic_create_outfile()
4354 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
4360 symrunp = runp->symbols; in ld_generic_create_outfile()
4367 while ((symrunp = symrunp->next_in_scn) != runp->symbols); in ld_generic_create_outfile()
4381 runp = head->last->next; in ld_generic_create_outfile()
4395 if (likely (runp->scn != NULL)) in ld_generic_create_outfile()
4397 data = elf_getdata (runp->scn, NULL); in ld_generic_create_outfile()
4405 assert (elf_getdata (runp->scn, data) == NULL); in ld_generic_create_outfile()
4410 assert (SCNINFO_SHDR (runp->shdr).sh_type == SHT_NOBITS); in ld_generic_create_outfile()
4415 outdata->d_size = SCNINFO_SHDR (runp->shdr).sh_size; in ld_generic_create_outfile()
4416 outdata->d_align = SCNINFO_SHDR (runp->shdr).sh_addralign; in ld_generic_create_outfile()
4423 runp->offset = offset; in ld_generic_create_outfile()
4424 runp->outscnndx = head->scnidx; in ld_generic_create_outfile()
4425 runp->allsectionsidx = cnt; in ld_generic_create_outfile()
4431 while ((runp = runp->next) != head->last->next); in ld_generic_create_outfile()
4728 struct usedfiles *runp; in ld_generic_create_outfile() local
4730 runp = ld_state.dsofiles->next; in ld_generic_create_outfile()
4732 allocate_version_names (runp, dynstrtab); in ld_generic_create_outfile()
4733 while ((runp = runp->next) != ld_state.dsofiles->next); in ld_generic_create_outfile()
4737 runp = ld_state.needed->next; in ld_generic_create_outfile()
4739 allocate_version_names (runp, dynstrtab); in ld_generic_create_outfile()
4740 while ((runp = runp->next) != ld_state.needed->next); in ld_generic_create_outfile()
4799 struct symbol *runp; in ld_generic_create_outfile() local
4805 runp = ld_state.from_dso; in ld_generic_create_outfile()
4811 if (runp->type == STT_FUNC) in ld_generic_create_outfile()
4814 runp->merge.value = plt_idx + 1; in ld_generic_create_outfile()
4824 sym->st_size = runp->size; in ld_generic_create_outfile()
4825 sym->st_info = XELF_ST_INFO (runp->weak ? STB_WEAK : STB_GLOBAL, in ld_generic_create_outfile()
4826 runp->type); in ld_generic_create_outfile()
4833 const char *name = runp->name; in ld_generic_create_outfile()
4836 if (runp->file->verdefdata != NULL) in ld_generic_create_outfile()
4841 (void) xelf_getversym_copy (runp->file->versymdata, runp->symidx, in ld_generic_create_outfile()
4848 = ebl_string (runp->file->verdefent[versym]); in ld_generic_create_outfile()
4861 runp->outsymidx = idx; in ld_generic_create_outfile()
4864 ndxtosym[idx] = runp; in ld_generic_create_outfile()
4866 while ((runp = runp->next) != ld_state.from_dso); in ld_generic_create_outfile()
5313 struct usedfiles *runp; in ld_generic_create_outfile() local
5336 runp = ld_state.dsofiles->next; in ld_generic_create_outfile()
5339 offset = create_verneed_data (offset, verneeddata, runp, in ld_generic_create_outfile()
5341 runp = runp->next; in ld_generic_create_outfile()
5343 while (ntotal > 0 && runp != ld_state.dsofiles->next); in ld_generic_create_outfile()
5347 runp = ld_state.needed->next; in ld_generic_create_outfile()
5350 offset = create_verneed_data (offset, verneeddata, runp, in ld_generic_create_outfile()
5352 runp = runp->next; in ld_generic_create_outfile()
5354 while (ntotal > 0 && runp != ld_state.needed->next); in ld_generic_create_outfile()
5933 struct usedfiles *runp = ld_state.dsofiles->next; in ld_generic_create_outfile() local
5936 if (! ld_state.ignore_unused_dsos || runp->used) in ld_generic_create_outfile()
5939 if (runp->lazyload) in ld_generic_create_outfile()
5945 ebl_strtaboffset (runp->sonameent)); in ld_generic_create_outfile()
5947 while ((runp = runp->next) != ld_state.dsofiles->next); in ld_generic_create_outfile()