Lines Matching refs:output_bfd
311 bfd *output_bfd ATTRIBUTE_UNUSED,
324 bfd *output_bfd ATTRIBUTE_UNUSED,
348 /* Set the GP value for OUTPUT_BFD. Returns FALSE if this is a
352 score_elf_assign_gp (bfd *output_bfd, bfd_vma *pgp)
359 *pgp = _bfd_get_gp_value (output_bfd);
363 count = bfd_get_symcount (output_bfd);
364 sym = bfd_get_outsymbols (output_bfd);
380 _bfd_set_gp_value (output_bfd, *pgp);
390 _bfd_set_gp_value (output_bfd, *pgp);
403 score_elf_final_gp (bfd *output_bfd,
416 *pgp = _bfd_get_gp_value (output_bfd);
425 _bfd_set_gp_value (output_bfd, *pgp);
427 else if (!score_elf_assign_gp (output_bfd, pgp))
522 bfd *output_bfd,
529 if (output_bfd != NULL
535 if (output_bfd != NULL)
540 output_bfd = symbol->section->output_section->owner;
543 ret = score_elf_final_gp (output_bfd, symbol, relocateable, error_message, &gp);
556 void *data, asection *input_section, bfd *output_bfd,
564 if (output_bfd != NULL
573 if (output_bfd != NULL)
578 output_bfd = symbol->section->output_section->owner;
581 ret = score_elf_final_gp (output_bfd, symbol, relocatable, error_message, &gp);
596 bfd *output_bfd, char **error_message)
603 input_section, output_bfd,
607 input_section, output_bfd, error_message);
616 bfd *output_bfd ATTRIBUTE_UNUSED,
1289 score_elf_create_dynamic_relocation (bfd *output_bfd,
1308 BFD_ASSERT (sreloc->reloc_count * SCORE_ELF_REL_SIZE (output_bfd) < sreloc->size);
1311 _bfd_elf_section_offset (output_bfd, info, input_section, rel[0].r_offset);
1313 _bfd_elf_section_offset (output_bfd, info, input_section, rel[1].r_offset);
1315 _bfd_elf_section_offset (output_bfd, info, input_section, rel[2].r_offset);
1390 (output_bfd, &outrel[0],
1768 bfd *output_bfd,
1776 gp = _bfd_get_gp_value (output_bfd);
1964 bfd *output_bfd,
1996 if (elf_gp (output_bfd) == 0)
2003 elf_gp (output_bfd) = (bh->u.def.value
2011 for (o = output_bfd->sections; o != NULL; o = o->next)
2015 elf_gp (output_bfd) = lo + ELF_SCORE_GP_OFFSET (input_bfd);
2038 bed = get_elf_backend_data (output_bfd);
2090 g = score_elf_local_got_index (output_bfd, input_bfd, info,
2098 output_bfd, input_bfd, g);
2104 gp = _bfd_get_gp_value (output_bfd);
2108 gp = _bfd_get_gp_value (output_bfd);
2134 if (!score_elf_create_dynamic_relocation (output_bfd, info, rel, h,
2328 value = score_elf_got16_entry (output_bfd, input_bfd, info,
2333 output_bfd, input_bfd, value);
2394 s3_bfd_score_elf_relocate_section (bfd *output_bfd,
2419 const struct elf_backend_data *bed = get_elf_backend_data (output_bfd);
2421 for (p = output_bfd->sections; p ; p = p->next)
2424 && !(*bed->elf_backend_omit_section_dynsym) (output_bfd, info, p))
2485 addend = _bfd_elf_rel_local_sym (output_bfd, sym, &msec, addend);
2506 addend = _bfd_elf_rel_local_sym (output_bfd, sym, &msec, addend);
2527 addend = _bfd_elf_rel_local_sym (output_bfd, sym, &msec, addend);
2553 addend = _bfd_elf_rel_local_sym (output_bfd, sym, &msec, addend) - relocation;
2575 addend = _bfd_elf_rel_local_sym (output_bfd, sym, &msec, addend) - relocation;
2594 addend = _bfd_elf_rel_local_sym (output_bfd, sym, &msec, addend) - relocation;
2665 BFD_ASSERT (bfd_get_section_by_name (output_bfd, ".dynamic") == NULL);
2704 r = score_elf_final_link_relocate (howto, input_bfd, output_bfd,
3180 s3_bfd_score_elf_always_size_sections (bfd *output_bfd,
3240 s->size += g->local_gotno * SCORE_ELF_GOT_SIZE (output_bfd);
3243 s->size += i * SCORE_ELF_GOT_SIZE (output_bfd);
3247 if (s->size > SCORE_ELF_GOT_MAX_SIZE (output_bfd))
3257 s3_bfd_score_elf_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
3319 outname = bfd_get_section_name (output_bfd, s->output_section);
3320 target = bfd_get_section_by_name (output_bfd, outname + 4);
3481 s3_bfd_score_elf_finish_dynamic_symbol (bfd *output_bfd,
3509 score_bfd_put_32 (output_bfd, STUB_LW, stub);
3510 score_bfd_put_32 (output_bfd, STUB_MOVE, stub + 4);
3511 score_bfd_put_32 (output_bfd, STUB_LI16 | (h->dynindx << 1), stub + 8);
3512 score_bfd_put_32 (output_bfd, STUB_BRL, stub + 12);
3544 score_bfd_put_32 (output_bfd, value, sgot->contents + offset);
3562 sym->st_value = elf_gp (output_bfd);
3570 s3_bfd_score_elf_finish_dynamic_sections (bfd *output_bfd,
3630 s = bfd_get_section_by_name (output_bfd, name);
3636 s = output_bfd->sections;
3649 dyn.d_un.d_val = bfd_count_sections (output_bfd) + 1;
3664 elemsize = SCORE_ELF_SYM_SIZE (output_bfd);
3665 output_bfd, name);
3690 score_bfd_put_32 (output_bfd, 0, sgot->contents);
3691 score_bfd_put_32 (output_bfd, 0x80000000, sgot->contents + SCORE_ELF_GOT_SIZE (output_bfd));
3696 = SCORE_ELF_GOT_SIZE (output_bfd);
3702 if (s != NULL && s->size > (bfd_vma)2 * SCORE_ELF_REL_SIZE (output_bfd))
3704 reldyn_sorting_bfd = output_bfd;
3767 s3_bfd_score_elf_write_section (bfd *output_bfd, asection *sec, bfd_byte *contents)
3790 bfd_set_section_contents (output_bfd, sec->output_section, contents,
4095 _bfd_score_elf_relocate_section (bfd *output_bfd,
4104 if (bfd_get_mach (output_bfd) == bfd_mach_score3)
4105 return s3_bfd_score_elf_relocate_section (output_bfd,
4109 return s7_bfd_score_elf_relocate_section (output_bfd,
4198 _bfd_score_elf_always_size_sections (bfd *output_bfd,
4201 if (bfd_get_mach (output_bfd) == bfd_mach_score3)
4202 return s3_bfd_score_elf_always_size_sections (output_bfd, info);
4204 return s7_bfd_score_elf_always_size_sections (output_bfd, info);
4208 _bfd_score_elf_size_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
4210 if (bfd_get_mach (output_bfd) == bfd_mach_score3)
4211 return s3_bfd_score_elf_size_dynamic_sections (output_bfd, info);
4213 output_bfd, info);
4226 _bfd_score_elf_finish_dynamic_symbol (bfd *output_bfd,
4231 if (bfd_get_mach (output_bfd) == bfd_mach_score3)
4232 return s3_bfd_score_elf_finish_dynamic_symbol (output_bfd, info, h, sym);
4234 return s7_bfd_score_elf_finish_dynamic_symbol (output_bfd, info, h, sym);
4238 _bfd_score_elf_finish_dynamic_sections (bfd *output_bfd,
4241 if (bfd_get_mach (output_bfd) == bfd_mach_score3)
4242 return s3_bfd_score_elf_finish_dynamic_sections (output_bfd, info);
4244 return s7_bfd_score_elf_finish_dynamic_sections (output_bfd, info);
4268 _bfd_score_elf_write_section (bfd *output_bfd,
4272 if (bfd_get_mach (output_bfd) == bfd_mach_score3)
4273 return s3_bfd_score_elf_write_section (output_bfd, sec, contents);
4275 return s7_bfd_score_elf_write_section (output_bfd, sec, contents);