Lines Matching refs:dynobj
615 bfd *dynobj;
733 sunos_hash_table (info)->dynobj = abfd;
798 bfd *dynobj;
800 dynobj = sunos_hash_table (info)->dynobj;
802 s = bfd_get_linker_section (dynobj, ".got");
823 bfd *dynobj;
840 dynobj = sunos_hash_table (info)->dynobj;
849 if (abfd != dynobj)
878 if (bfd_get_section_by_name (dynobj, ".need") == NULL)
885 asection *s = bfd_make_section_with_flags (dynobj, ".need", flags);
887 || ! bfd_set_section_alignment (dynobj, s, 2))
891 if (bfd_get_section_by_name (dynobj, ".rules") == NULL)
898 asection *s = bfd_make_section_with_flags (dynobj, ".rules", flags);
900 || ! bfd_set_section_alignment (dynobj, s, 2))
1249 bfd *dynobj;
1262 dynobj = NULL;
1315 if (dynobj == NULL)
1321 dynobj = sunos_hash_table (info)->dynobj;
1322 splt = bfd_get_linker_section (dynobj, ".plt");
1323 srel = bfd_get_linker_section (dynobj, ".dynrel");
1326 sgot = bfd_get_linker_section (dynobj, ".got");
1403 bfd *dynobj;
1418 dynobj = NULL;
1467 if (dynobj == NULL)
1471 dynobj = sunos_hash_table (info)->dynobj;
1472 splt = bfd_get_linker_section (dynobj, ".plt");
1473 sgot = bfd_get_linker_section (dynobj, ".got");
1474 srel = bfd_get_linker_section (dynobj, ".dynrel");
1535 if (dynobj == NULL)
1539 dynobj = sunos_hash_table (info)->dynobj;
1540 splt = bfd_get_linker_section (dynobj, ".plt");
1541 sgot = bfd_get_linker_section (dynobj, ".got");
1542 srel = bfd_get_linker_section (dynobj, ".dynrel");
1582 if (dynobj == NULL)
1586 dynobj = sunos_hash_table (info)->dynobj;
1587 splt = bfd_get_linker_section (dynobj, ".plt");
1588 sgot = bfd_get_linker_section (dynobj, ".got");
1589 srel = bfd_get_linker_section (dynobj, ".dynrel");
1795 bfd *dynobj;
1799 dynobj = sunos_hash_table (info)->dynobj;
1812 s = bfd_get_linker_section (dynobj, ".dynstr");
1831 s = bfd_get_linker_section (dynobj, ".hash");
1834 if (GET_SWORD (dynobj, s->contents + hash * HASH_ENTRY_SIZE) == -1)
1835 PUT_WORD (dynobj, h->dynindx, s->contents + hash * HASH_ENTRY_SIZE);
1840 next = GET_WORD (dynobj,
1844 PUT_WORD (dynobj, s->size / HASH_ENTRY_SIZE,
1846 PUT_WORD (dynobj, h->dynindx, s->contents + s->size);
1847 PUT_WORD (dynobj, next, s->contents + s->size + BYTES_IN_WORD);
1871 bfd *dynobj;
1908 dynobj = sunos_hash_table (info)->dynobj;
1928 s = bfd_get_linker_section (dynobj, ".got");
1948 *sdynptr = bfd_get_linker_section (dynobj, ".dynamic");
1965 s = bfd_get_linker_section (dynobj, ".dynsym");
1986 s = bfd_get_linker_section (dynobj, ".hash");
1989 s->contents = bfd_zalloc (dynobj, hashalloc);
2010 s = bfd_get_linker_section (dynobj, ".dynstr");
2029 s = bfd_get_linker_section (dynobj, ".plt");
2033 s->contents = bfd_alloc (dynobj, s->size);
2038 switch (bfd_get_arch (dynobj))
2053 s = bfd_get_linker_section (dynobj, ".dynrel");
2056 s->contents = bfd_alloc (dynobj, s->size);
2065 s = bfd_get_linker_section (dynobj, ".got");
2066 s->contents = bfd_alloc (dynobj, s->size);
2070 *sneedptr = bfd_get_section_by_name (dynobj, ".need");
2071 dynobj, ".rules");
2105 bfd *dynobj;
2110 dynobj = sunos_hash_table (info)->dynobj;
2111 splt = bfd_get_linker_section (dynobj, ".plt");
2114 s = bfd_get_linker_section (dynobj, ".dynrel");
2167 BFD_ASSERT (s->reloc_count * obj_reloc_entry_size (dynobj)
2298 s = bfd_get_linker_section (sunos_hash_table (info)->dynobj, ".dynsym");
2333 bfd *dynobj;
2343 dynobj = sunos_hash_table (info)->dynobj;
2353 splt = bfd_get_linker_section (dynobj, ".plt");
2448 sgot = bfd_get_linker_section (dynobj, ".got");
2458 PUT_WORD (dynobj, *relocationp, sgot->contents + *got_offsetp);
2460 PUT_WORD (dynobj, 0, sgot->contents + *got_offsetp);
2470 s = bfd_get_linker_section (dynobj, ".dynrel");
2472 BFD_ASSERT (s->reloc_count * obj_reloc_entry_size (dynobj)
2476 + s->reloc_count * obj_reloc_entry_size (dynobj));
2483 if (obj_reloc_entry_size (dynobj) == RELOC_STD_SIZE)
2488 PUT_WORD (dynobj,
2493 if (bfd_header_big_endian (dynobj))
2527 PUT_WORD (dynobj,
2532 if (bfd_header_big_endian (dynobj))
2559 PUT_WORD (dynobj, 0, erel->r_addend);
2600 s = bfd_get_linker_section (dynobj, ".dynrel");
2602 BFD_ASSERT (s->reloc_count * obj_reloc_entry_size (dynobj) < s->size);
2604 p = s->contents + s->reloc_count * obj_reloc_entry_size (dynobj);
2607 memcpy (p, reloc, obj_reloc_entry_size (dynobj));
2615 if (obj_reloc_entry_size (dynobj) == RELOC_STD_SIZE)
2620 PUT_WORD (dynobj,
2621 (GET_WORD (dynobj, srel->r_address)
2625 if (bfd_header_big_endian (dynobj))
2645 PUT_WORD (dynobj,
2646 dynobj, erel->r_address)
2650 if (bfd_header_big_endian (dynobj))
2665 PUT_WORD (dynobj,
2666 (GET_WORD (dynobj, erel->r_addend)
2687 bfd *dynobj;
2696 dynobj = sunos_hash_table (info)->dynobj;
2698 sdyn = bfd_get_linker_section (dynobj, ".dynamic");
2705 s = bfd_get_section_by_name (dynobj, ".need");
2717 PUT_WORD (dynobj, GET_WORD (dynobj, p) + filepos, p);
2718 val = GET_WORD (dynobj, p + 12);
2721 PUT_WORD (dynobj, val + filepos, p + 12);
2728 s = bfd_get_linker_section (dynobj, ".got");
2731 PUT_WORD (dynobj, 0, s->contents);
2733 PUT_WORD (dynobj, sdyn->output_section->vma + sdyn->output_offset,
2736 for (o = dynobj->sections; o != NULL; o = o->next)
2758 PUT_WORD (dynobj, (bfd_vma) 3, esd.ld_version);
2759 PUT_WORD (dynobj,
2762 PUT_WORD (dynobj,
2774 PUT_WORD (dynobj, (bfd_vma) 0, esdl.ld_loaded);
2776 s = bfd_get_section_by_name (dynobj, ".need");
2778 PUT_WORD (dynobj, (bfd_vma) 0, esdl.ld_need);
2780 PUT_WORD (dynobj, s->output_section->filepos + s->output_offset,
2783 s = bfd_get_section_by_name (dynobj, ".rules");
2785 PUT_WORD (dynobj, (bfd_vma) 0, esdl.ld_rules);
2787 PUT_WORD (dynobj, s->output_section->filepos + s->output_offset,
2790 s = bfd_get_linker_section (dynobj, ".got");
2792 PUT_WORD (dynobj, s->output_section->vma + s->output_offset,
2795 s = bfd_get_linker_section (dynobj, ".plt");
2797 PUT_WORD (dynobj, s->output_section->vma + s->output_offset,
2799 PUT_WORD (dynobj, s->size, esdl.ld_plt_sz);
2801 s = bfd_get_linker_section (dynobj, ".dynrel");
2803 BFD_ASSERT (s->reloc_count * obj_reloc_entry_size (dynobj)
2805 PUT_WORD (dynobj, s->output_section->filepos + s->output_offset,
2808 s = bfd_get_linker_section (dynobj, ".hash");
2810 PUT_WORD (dynobj, s->output_section->filepos + s->output_offset,
2813 s = bfd_get_linker_section (dynobj, ".dynsym");
2815 PUT_WORD (dynobj, s->output_section->filepos + s->output_offset,
2818 PUT_WORD (dynobj, (bfd_vma) 0, esdl.ld_stab_hash);
2820 PUT_WORD (dynobj, (bfd_vma) sunos_hash_table (info)->bucketcount,
2823 s = bfd_get_linker_section (dynobj, ".dynstr");
2825 PUT_WORD (dynobj, s->output_section->filepos + s->output_offset,
2827 PUT_WORD (dynobj, s->size, esdl.ld_symb_size);
2832 PUT_WORD (dynobj,