Lines Matching defs:abfd

187      alpha_elf_tdata(abfd)->got_link_next.  */
217 #define alpha_elf_sym_hashes(abfd) \
218 ((struct alpha_elf_link_hash_entry **)elf_sym_hashes(abfd))
273 elf64_alpha_bfd_link_hash_table_create (bfd *abfd)
282 if (!_bfd_elf_link_hash_table_init (&ret->root, abfd,
325 #define alpha_elf_tdata(abfd) \
326 ((struct alpha_elf_obj_tdata *) (abfd)->tdata.any)
329 elf64_alpha_mkobject (bfd *abfd)
331 if (abfd->tdata.any == NULL)
334 abfd->tdata.any = bfd_zalloc (abfd, amt);
335 if (abfd->tdata.any == NULL)
338 return bfd_elf_mkobject (abfd);
342 elf64_alpha_object_p (bfd *abfd)
345 return bfd_default_set_arch_mach (abfd, bfd_arch_alpha, 0);
352 elf64_alpha_reloc_nil (bfd *abfd ATTRIBUTE_UNUSED, arelent *reloc,
365 elf64_alpha_reloc_bad (bfd *abfd ATTRIBUTE_UNUSED, arelent *reloc,
378 elf64_alpha_do_reloc_gpdisp (bfd *abfd, bfd_vma gpdisp, bfd_byte *p_ldah,
385 i_ldah = bfd_get_32 (abfd, p_ldah);
386 i_lda = bfd_get_32 (abfd, p_lda);
409 bfd_put_32 (abfd, (bfd_vma) i_ldah, p_ldah);
410 bfd_put_32 (abfd, (bfd_vma) i_lda, p_lda);
418 elf64_alpha_reloc_gpdisp (bfd *abfd, arelent *reloc_entry,
435 high_address = bfd_get_section_limit (abfd, input_section);
442 gp = _bfd_get_gp_value (abfd);
451 ret = elf64_alpha_do_reloc_gpdisp (abfd, gp - relocation, p_ldah, p_lda);
1052 elf64_alpha_bfd_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED,
1067 elf64_alpha_bfd_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
1086 elf64_alpha_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
1117 elf64_alpha_section_from_shdr (bfd *abfd,
1139 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
1145 if (! bfd_set_section_flags (abfd, newsect,
1146 (bfd_get_section_flags (abfd, newsect)
1169 elf64_alpha_fake_sections (bfd *abfd, Elf_Internal_Shdr *hdr, asection *sec)
1173 name = bfd_get_section_name (abfd, sec);
1180 if ((abfd->flags & DYNAMIC) != 0 )
1199 elf64_alpha_add_symbol_hook (bfd *abfd, struct bfd_link_info *info,
1207 && sym->st_size <= elf_gp_size (abfd))
1212 asection *scomm = bfd_get_section_by_name (abfd, ".scommon");
1216 scomm = bfd_make_section_with_flags (abfd, ".scommon",
1234 elf64_alpha_create_got_section (bfd *abfd,
1242 s = bfd_make_section_anyway_with_flags (abfd, ".got", flags);
1244 || !bfd_set_section_alignment (abfd, s, 3))
1247 alpha_elf_tdata (abfd)->got = s;
1252 alpha_elf_tdata (abfd)->gotobj = abfd;
1260 elf64_alpha_create_dynamic_sections (bfd *abfd, struct bfd_link_info *info)
1271 s = bfd_make_section_anyway_with_flags (abfd, ".plt", flags);
1272 if (s == NULL || ! bfd_set_section_alignment (abfd, s, 4))
1277 h = _bfd_elf_define_linkage_sym (abfd, info, s,
1285 s = bfd_make_section_anyway_with_flags (abfd, ".rela.plt", flags);
1286 if (s == NULL || ! bfd_set_section_alignment (abfd, s, 3))
1292 s = bfd_make_section_anyway_with_flags (abfd, ".got.plt", flags);
1293 if (s == NULL || ! bfd_set_section_alignment (abfd, s, 3))
1300 if (alpha_elf_tdata(abfd)->gotobj == NULL)
1302 if (!elf64_alpha_create_got_section (abfd, info))
1308 s = bfd_make_section_anyway_with_flags (abfd, ".rela.got", flags);
1310 || !bfd_set_section_alignment (abfd, s, 3))
1317 h = _bfd_elf_define_linkage_sym (abfd, info, alpha_elf_tdata(abfd)->got,
1331 elf64_alpha_read_ecoff_info (bfd *abfd, asection *section,
1338 swap = get_elf_backend_data (abfd)->elf_backend_ecoff_debug_swap;
1345 if (! bfd_get_section_contents (abfd, section, ext_hdr, (file_ptr) 0,
1350 (*swap->swap_hdr_in) (abfd, ext_hdr, symhdr);
1363 if (bfd_seek (abfd, (file_ptr) symhdr->offset, SEEK_SET) != 0 \
1364 || bfd_bread (debug->ptr, amt, abfd) != amt) \
1417 elf64_alpha_is_local_label_name (bfd *abfd ATTRIBUTE_UNUSED, const char *name)
1434 elf64_alpha_find_nearest_line (bfd *abfd, asection *section, asymbol **symbols,
1441 if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
1444 &elf_tdata (abfd)->dwarf2_find_line_info))
1447 msec = bfd_get_section_by_name (abfd, ".mdebug");
1453 get_elf_backend_data (abfd)->elf_backend_ecoff_debug_swap;
1462 fi = elf_tdata (abfd)->find_line_info;
1471 fi = (struct mips_elf_find_line *) bfd_zalloc (abfd, amt);
1478 if (!elf64_alpha_read_ecoff_info (abfd, msec, &fi->d))
1486 fi->d.fdr = (struct fdr *) bfd_alloc (abfd, amt);
1498 (*swap->swap_fdr_in) (abfd, (PTR) fraw_src, fdr_ptr);
1500 elf_tdata (abfd)->find_line_info = fi;
1510 if (_bfd_ecoff_locate_line (abfd, section, offset, &fi->d, swap,
1523 return _bfd_elf_find_nearest_line (abfd, section, symbols, offset,
1533 bfd *abfd;
1644 if (! bfd_ecoff_debug_one_external (einfo->abfd, einfo->debug, einfo->swap,
1659 get_got_entry (bfd *abfd, struct alpha_elf_link_hash_entry *h,
1674 local_got_entries = alpha_elf_tdata(abfd)->local_got_entries;
1680 symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
1685 = (struct alpha_elf_got_entry **) bfd_zalloc (abfd, size);
1689 alpha_elf_tdata (abfd)->local_got_entries = local_got_entries;
1696 if (gotent->gotobj == abfd
1707 gotent = (struct alpha_elf_got_entry *) bfd_alloc (abfd, amt);
1711 gotent->gotobj = abfd;
1724 alpha_elf_tdata (abfd)->total_got_size += entry_size;
1726 alpha_elf_tdata(abfd)->local_got_size += entry_size;
1747 elf64_alpha_check_relocs (bfd *abfd, struct bfd_link_info *info,
1772 elf_hash_table(info)->dynobj = dynobj = abfd;
1776 symtab_hdr = &elf_tdata(abfd)->symtab_hdr;
1777 sym_hashes = alpha_elf_sym_hashes(abfd);
1889 if (alpha_elf_tdata(abfd)->gotobj == NULL)
1891 if (!elf64_alpha_create_got_section (abfd, info))
1900 gotent = get_got_entry (abfd, h, r_type, r_symndx, addend);
1928 (abfd, elf_elfheader(abfd)->e_shstrndx,
1934 && strcmp (bfd_get_section_name (abfd, sec),
1979 rent = (struct alpha_elf_reloc_entry *) bfd_alloc (abfd, amt);
2895 bfd *abfd;
2935 insn = bfd_get_32 (info->abfd, info->contents + irel->r_offset);
2942 info->abfd, info->sec,
3003 bfd_put_32 (info->abfd, (bfd_vma) insn, info->contents + irel->r_offset);
3070 (info->abfd, info->tsec, (PTR) NULL,
3119 lit_insn = bfd_get_32 (info->abfd, info->contents + irel->r_offset);
3124 info->abfd, info->sec,
3151 insn = bfd_get_32 (info->abfd, info->contents + urel->r_offset);
3185 bfd_put_32 (info->abfd, (bfd_vma) insn,
3198 bfd_put_32 (info->abfd, (bfd_vma) lit_insn,
3225 bfd_put_32 (info->abfd, (bfd_vma) insn,
3244 bfd_put_32 (info->abfd, (bfd_vma) insn,
3277 bfd_put_32 (info->abfd, (bfd_vma) insn,
3305 unsigned int ldah = bfd_get_32 (info->abfd, p_ldah);
3306 unsigned int lda = bfd_get_32 (info->abfd, p_lda);
3315 bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, p_ldah);
3316 bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, p_lda);
3350 bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP,
3434 lit_h = alpha_elf_sym_hashes (info->abfd)[indx];
3493 bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
3494 bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[1]);
3506 bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
3508 bfd_put_32 (info->abfd, (bfd_vma) insn, pos[1]);
3523 bfd_put_32 (info->abfd, (bfd_vma) insn, pos[0]);
3524 bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[1]);
3532 bfd_put_32 (info->abfd, (bfd_vma) INSN_RDUNIQ, pos[2]);
3535 bfd_put_32 (info->abfd, (bfd_vma) insn, pos[3]);
3537 bfd_put_32 (info->abfd, (bfd_vma) INSN_UNOP, pos[4]);
3580 bfd_alloc (info->abfd, sizeof (struct alpha_elf_got_entry));
3603 elf64_alpha_relax_section (bfd *abfd, asection *sec,
3638 symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
3639 local_got_entries = alpha_elf_tdata(abfd)->local_got_entries;
3643 (abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
3649 info.abfd = abfd;
3658 info.gotobj = alpha_elf_tdata (abfd)->gotobj;
3672 if (!bfd_malloc_and_get_section (abfd, sec, &info.contents))
3715 isymbuf = bfd_elf_get_elf_syms (abfd, symtab_hdr,
3741 info.tsec = bfd_section_from_elf_index (abfd, isym->st_shndx);
3760 h = alpha_elf_sym_hashes (abfd)[indx];
3901 elf64_alpha_emit_dynrel (bfd *abfd, struct bfd_link_info *info,
3913 offset = _bfd_elf_section_offset (abfd, info, sec, offset);
3921 bfd_elf64_swap_reloca_out (abfd, &outrel, loc);
4936 elf64_alpha_final_link (bfd *abfd, struct bfd_link_info *info)
4943 = get_elf_backend_data (abfd)->elf_backend_ecoff_debug_swap;
4949 for (o = abfd->sections; o != (asection *) NULL; o = o->next)
4988 mdebug_handle = bfd_ecoff_debug_init (abfd, &debug, swap, info);
5018 s = bfd_get_section_by_name (abfd, name[i]);
5027 if (! bfd_ecoff_debug_one_external (abfd, &debug, swap,
5077 (mdebug_handle, abfd, &debug, swap, input_bfd,
5138 einfo.abfd = abfd;
5150 o->size = bfd_ecoff_debug_size (abfd, &debug, swap);
5161 if (! bfd_elf_final_link (abfd, info))
5180 if (! bfd_set_section_contents (abfd, sgot->output_section,
5190 BFD_ASSERT (abfd->output_has_begun);
5191 if (! bfd_ecoff_write_accumulated_debug (mdebug_handle, abfd, &debug,
5196 bfd_ecoff_debug_free (mdebug_handle, abfd, &debug, swap, info);
5400 elf64_alpha_fbsd_post_process_headers (bfd * abfd,
5405 i_ehdrp = elf_elfheader (abfd);
5408 i_ehdrp->e_ident[EI_OSABI] = get_elf_backend_data (abfd)->elf_osabi;