Home | History | Annotate | Download | only in bfd

Lines Matching defs:ldsym

180   bfd_byte *ldsym;
207 belong here, but we already have the ldsym manipulation routines
315 struct internal_ldsym ldsym;
317 bfd_xcoff_swap_ldsym_in (abfd, elsym, &ldsym);
321 if (ldsym._l._l_l._l_zeroes == 0)
322 symbuf->symbol.name = strings + ldsym._l._l_l._l_offset;
330 memcpy (c, ldsym._l._l_name, SYMNMLEN);
335 if (ldsym.l_smclas == XMC_XO)
339 ldsym.l_scnum);
340 symbuf->symbol.value = ldsym.l_value - symbuf->symbol.section->vma;
343 if ((ldsym.l_smtype & L_EXPORT) != 0)
345 if ((ldsym.l_smtype & L_WEAK) != 0)
568 ret->ldsym = NULL;
750 BFD_ASSERT (h->ldsym == NULL);
788 /* H is the bfd symbol associated with exported .loader symbol LDSYM.
789 Return true if LDSYM defines H. */
793 struct internal_ldsym *ldsym)
795 /* If we didn't know about H before processing LDSYM, LDSYM
800 /* If H is currently a weak dynamic symbol, and if LDSYM is a strong
801 dynamic symbol, LDSYM trumps the current definition of H. */
802 if ((ldsym->l_smtype & L_WEAK) == 0
809 /* If H is currently undefined, LDSYM defines it. */
883 struct internal_ldsym ldsym;
888 bfd_xcoff_swap_ldsym_in (abfd, elsym, &ldsym);
891 if ((ldsym.l_smtype & L_EXPORT) == 0)
894 if (ldsym._l._l_l._l_zeroes == 0)
895 name = strings + ldsym._l._l_l._l_offset;
898 memcpy (nambuf, ldsym._l._l_name, SYMNMLEN);
913 if (!xcoff_dynamic_definition_p (h, &ldsym))
917 h->smclas = ldsym.l_smclas;
921 if ((ldsym.l_smtype & L_WEAK) != 0)
926 h->root.u.def.value = ldsym.l_value;
934 if ((ldsym.l_smtype & L_WEAK) != 0)
970 if (xcoff_dynamic_definition_p (hds, &ldsym))
981 hds->root.u.def.value = ldsym.l_value;
2268 struct internal_ldsym ldsym;
2273 bfd_xcoff_swap_ldsym_in (abfd, elsym, &ldsym);
2276 if ((ldsym.l_smtype & L_EXPORT) == 0)
2279 if (ldsym._l._l_l._l_zeroes == 0)
2280 name = strings + ldsym._l._l_l._l_offset;
2283 memcpy (nambuf, ldsym._l._l_name, SYMNMLEN);
3327 BFD_ASSERT (h->ldsym == NULL);
3329 h->ldsym = bfd_zalloc (ldinfo->output_bfd, amt);
3330 if (h->ldsym == NULL)
3341 h->ldsym->l_ifile = h->ldindx;
3351 h->ldsym, h->root.root.string))
3680 struct internal_ldsym *ldsym;
3695 amt = sizeof (* ldsym);
3696 ldsym = bfd_malloc (amt);
3698 ldsym->l_value = 0; /* Will be filled in later. */
3699 ldsym->l_scnum = 2; /* Data section. */
3700 ldsym->l_smtype = XTY_SD; /* Csect section definition. */
3701 ldsym->l_smclas = 5; /* .rw. */
3702 ldsym->l_ifile = 0; /* Special system loader symbol. */
3703 ldsym->l_parm = 0; /* NA. */
3714 hsym->ldsym = ldsym;
3717 hsym->ldsym, hsym->root.root.string))
4204 && (*sym_hash)->ldsym != NULL
4208 struct internal_ldsym *ldsym;
4211 ldsym = h->ldsym;
4214 ldsym->l_scnum = (*csectpp)->output_section->target_index;
4215 ldsym->l_value = (isymp->n_value
4222 ldsym->l_scnum = isymp->n_scnum;
4223 ldsym->l_value = isymp->n_value;
4226 ldsym->l_smtype = smtyp;
4230 ldsym->l_smtype |= L_IMPORT;
4234 ldsym->l_smtype |= L_EXPORT;
4236 ldsym->l_smtype |= L_ENTRY;
4238 ldsym->l_smtype |= L_WEAK;
4240 ldsym->l_smclas = aux.x_csect.x_smclas;
4242 if (ldsym->l_ifile == (bfd_size_type) -1)
4243 ldsym->l_ifile = 0;
4244 else if (ldsym->l_ifile == 0)
4246 if ((ldsym->l_smtype & L_IMPORT) == 0)
4247 ldsym->l_ifile = 0;
4262 ldsym->l_ifile = 0;
4266 ldsym->l_ifile = xcoff_data (impbfd)->import_file_id;
4271 ldsym->l_parm = 0;
4274 bfd_xcoff_swap_ldsym_out (flinfo->output_bfd, ldsym,
4275 (flinfo->ldsym
4278 h->ldsym = NULL;
5193 if (h->ldsym != NULL)
5195 struct internal_ldsym *ldsym;
5198 ldsym = h->ldsym;
5204 ldsym->l_value = 0;
5205 ldsym->l_scnum = N_UNDEF;
5206 ldsym->l_smtype = XTY_ER;
5216 ldsym->l_value = (sec->output_section->vma
5219 ldsym->l_scnum = sec->output_section->target_index;
5220 ldsym->l_smtype = XTY_SD;
5234 ldsym->l_smtype |= L_IMPORT;
5239 ldsym->l_smtype |= L_EXPORT;
5242 ldsym->l_smtype |= L_ENTRY;
5245 ldsym->l_smtype = XTY_SD;
5247 ldsym->l_smclas = h->smclas;
5249 if (ldsym->l_smtype & L_IMPORT)
5254 ldsym->l_smclas = XMC_XO;
5258 ldsym->l_smclas = XMC_SV3264;
5261 ldsym->l_smclas = XMC_SV;
5264 ldsym->l_smclas = XMC_SV64;
5267 if (ldsym->l_ifile == -(bfd_size_type) 1)
5269 ldsym->l_ifile = 0;
5271 else if (ldsym->l_ifile == 0)
5273 if ((ldsym->l_smtype & L_IMPORT) == 0)
5274 ldsym->l_ifile = 0;
5276 ldsym->l_ifile = 0;
5280 ldsym->l_ifile = xcoff_data (impbfd)->import_file_id;
5284 ldsym->l_parm = 0;
5288 bfd_xcoff_swap_ldsym_out (output_bfd, ldsym,
5289 (flinfo->ldsym +
5292 h->ldsym = NULL;
5865 flinfo.ldsym = (xcoff_hash_table (info)->loader_section->contents
5874 flinfo.ldsym = NULL;