Lines Matching defs:abfd

193   PARAMS ((bfd *abfd, arelent *reloc, asymbol *sym, PTR data,
198 PARAMS ((bfd *abfd, bfd_reloc_code_real_type bfd_code));
200 PARAMS ((bfd *abfd, arelent *bfd_reloc, Elf_Internal_Rela *elf_reloc));
202 PARAMS((bfd *abfd, asection *sec, struct bfd_link_info *link_info,
207 PARAMS ((bfd *abfd, const char *));
211 PARAMS ((bfd *abfd, Elf_Internal_Shdr *hdr, asection *sec));
213 PARAMS ((bfd *abfd, bfd_boolean linker));
215 PARAMS ((bfd *abfd, struct bfd_link_info *info, Elf_Internal_Sym *sym,
219 PARAMS ((bfd *abfd, const char *name));
234 PARAMS ((bfd *abfd));
246 PARAMS ((bfd *abfd, struct bfd_link_info *info));
249 bfd *abfd, const Elf_Internal_Rela *rel, bfd_boolean create));
253 bfd *abfd, const Elf_Internal_Rela *rel, bfd_boolean create));
255 PARAMS ((bfd *abfd, struct bfd_link_info *info,
258 PARAMS ((bfd *abfd, struct bfd_link_info *info,
261 PARAMS ((bfd *abfd, struct bfd_link_info *info,
264 PARAMS ((bfd *abfd, struct elfNN_ia64_link_hash_table *ia64_info,
267 PARAMS ((bfd *abfd, struct bfd_link_info *info, asection *sec,
294 PARAMS ((bfd *abfd, struct bfd_link_info *info, asection *sec,
298 PARAMS ((bfd *abfd, struct bfd_link_info *info,
302 PARAMS ((bfd *abfd, struct bfd_link_info *info,
306 PARAMS ((bfd *abfd, struct bfd_link_info *info,
316 PARAMS ((bfd *abfd, struct bfd_link_info *info));
318 PARAMS ((bfd *abfd, struct bfd_link_info *info));
328 PARAMS ((bfd *abfd, struct bfd_link_info *info));
330 PARAMS ((bfd *abfd, flagword flags));
334 PARAMS ((bfd *abfd, PTR ptr));
340 PARAMS ((bfd *abfd, struct bfd_link_info *info));
342 PARAMS ((bfd *abfd, asection *sec, int *retval));
350 elfNN_ia64_reloc (abfd, reloc, sym, data, input_section,
352 bfd *abfd ATTRIBUTE_UNUSED;
508 elfNN_ia64_reloc_type_lookup (abfd, bfd_code)
509 bfd *abfd ATTRIBUTE_UNUSED;
618 elfNN_ia64_reloc_name_lookup (bfd *abfd ATTRIBUTE_UNUSED,
636 elfNN_ia64_info_to_howto (abfd, bfd_reloc, elf_reloc)
637 bfd *abfd ATTRIBUTE_UNUSED;
891 elfNN_ia64_relax_section (abfd, sec, link_info, again)
892 bfd *abfd;
935 symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
939 (abfd, sec, (PTR) NULL, (Elf_Internal_Rela *) NULL,
952 if (!bfd_malloc_and_get_section (abfd, sec, &contents))
1018 isymbuf = bfd_elf_get_elf_syms (abfd, symtab_hdr,
1035 tsec = bfd_section_from_elf_index (abfd, isym->st_shndx);
1038 dyn_i = get_dyn_sym_info (ia64_info, NULL, abfd, irel, FALSE);
1047 h = elf_sym_hashes (abfd)[indx];
1054 dyn_i = get_dyn_sym_info (ia64_info, h, abfd, irel, FALSE);
1109 toff = _bfd_merged_section_offset (abfd, &tsec,
1447 is_unwind_section_name (bfd *abfd, const char *name)
1449 if (elfNN_ia64_hpux_vec (abfd->xvec)
1463 elfNN_ia64_section_from_shdr (bfd *abfd,
1490 if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex))
1517 elfNN_ia64_fake_sections (abfd, hdr, sec)
1518 bfd *abfd ATTRIBUTE_UNUSED;
1524 name = bfd_get_section_name (abfd, sec);
1526 if (is_unwind_section_name (abfd, name))
1561 if (elfNN_ia64_hpux_vec (abfd->xvec) && (sec->flags & SHF_TLS))
1571 elfNN_ia64_final_write_processing (abfd, linker)
1572 bfd *abfd;
1578 for (s = abfd->sections; s; s = s->next)
1593 if (! elf_flags_init (abfd))
1597 if (abfd->xvec->byteorder == BFD_ENDIAN_BIG)
1599 if (bfd_get_mach (abfd) == bfd_mach_ia64_elf64)
1602 elf_elfheader(abfd)->e_flags = flags;
1603 elf_flags_init (abfd) = TRUE;
1611 elfNN_ia64_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp)
1612 bfd *abfd;
1622 && sym->st_size <= elf_gp_size (abfd))
1627 asection *scomm = bfd_get_section_by_name (abfd, ".scommon");
1631 scomm = bfd_make_section_with_flags (abfd, ".scommon",
1649 elfNN_ia64_additional_program_headers (bfd *abfd,
1656 s = bfd_get_section_by_name (abfd, ELF_STRING_ia64_archext);
1661 for (s = abfd->sections; s; s = s->next)
1662 if (is_unwind_section_name (abfd, s->name) && (s->flags & SEC_LOAD))
1669 elfNN_ia64_modify_segment_map (bfd *abfd,
1678 s = bfd_get_section_by_name (abfd, ELF_STRING_ia64_archext);
1681 for (m = elf_tdata (abfd)->segment_map; m != NULL; m = m->next)
1687 bfd_zalloc (abfd, (bfd_size_type) sizeof *m));
1696 pm = &elf_tdata (abfd)->segment_map;
1708 for (s = abfd->sections; s; s = s->next)
1716 for (m = elf_tdata (abfd)->segment_map; m != NULL; m = m->next)
1735 bfd_zalloc (abfd, (bfd_size_type) sizeof *m));
1745 pm = &elf_tdata (abfd)->segment_map;
1761 elfNN_ia64_modify_program_headers (bfd *abfd,
1764 struct elf_obj_tdata *tdata = elf_tdata (abfd);
1801 elfNN_ia64_is_local_label_name (abfd, name)
1802 bfd *abfd ATTRIBUTE_UNUSED;
1971 elfNN_ia64_hash_table_create (abfd)
1972 bfd *abfd;
1980 if (!_bfd_elf_link_hash_table_init (&ret->root, abfd,
2136 elfNN_ia64_create_dynamic_sections (abfd, info)
2137 bfd *abfd;
2143 if (! _bfd_elf_create_dynamic_sections (abfd, info))
2148 ia64_info->plt_sec = bfd_get_section_by_name (abfd, ".plt");
2149 ia64_info->got_sec = bfd_get_section_by_name (abfd, ".got");
2152 flagword flags = bfd_get_section_flags (abfd, ia64_info->got_sec);
2153 bfd_set_section_flags (abfd, ia64_info->got_sec, SEC_SMALL_DATA | flags);
2155 bfd_set_section_alignment (abfd, ia64_info->got_sec, 3);
2158 if (!get_pltoff (abfd, info, ia64_info))
2161 s = bfd_make_section_with_flags (abfd, ".rela.IA_64.pltoff",
2168 || !bfd_set_section_alignment (abfd, s, LOG_SECTION_ALIGN))
2172 s = bfd_make_section_with_flags (abfd, ".rela.got",
2179 || !bfd_set_section_alignment (abfd, s, LOG_SECTION_ALIGN))
2188 get_local_sym_hash (ia64_info, abfd, rel, create)
2190 bfd *abfd;
2195 asection *sec = abfd->sections;
2420 get_dyn_sym_info (ia64_info, h, abfd, rel, create)
2423 bfd *abfd;
2447 loc_h = get_local_sym_hash (ia64_info, abfd, rel, create);
2562 get_got (abfd, info, ia64_info)
2563 bfd *abfd;
2577 ia64_info->root.dynobj = dynobj = abfd;
2586 if (!bfd_set_section_alignment (abfd, got, 3))
2589 flags = bfd_get_section_flags (abfd, got);
2590 bfd_set_section_flags (abfd, got, SEC_SMALL_DATA | flags);
2602 get_fptr (abfd, info, ia64_info)
2603 bfd *abfd;
2615 ia64_info->root.dynobj = dynobj = abfd;
2625 || !bfd_set_section_alignment (abfd, fptr, 4))
2643 || !bfd_set_section_alignment (abfd, fptr_rel,
2658 get_pltoff (abfd, info, ia64_info)
2659 bfd *abfd;
2671 ia64_info->root.dynobj = dynobj = abfd;
2682 || !bfd_set_section_alignment (abfd, pltoff, 4))
2695 get_reloc_section (abfd, ia64_info, sec, create)
2696 bfd *abfd;
2706 (abfd, elf_elfheader(abfd)->e_shstrndx,
2712 && strcmp (bfd_get_section_name (abfd, sec),
2715 && strcmp (bfd_get_section_name (abfd, sec),
2720 ia64_info->root.dynobj = dynobj = abfd;
2741 count_dyn_reloc (bfd *abfd, struct elfNN_ia64_dyn_sym_info *dyn_i,
2753 bfd_alloc (abfd, (bfd_size_type) sizeof (*rent)));
2770 elfNN_ia64_check_relocs (abfd, info, sec, relocs)
2771 bfd *abfd;
2802 symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
2818 h = elf_sym_hashes (abfd)[indx];
2916 abfd, 0, (bfd_vma) 0);
2968 abfd, 0, (bfd_vma) 0);
2971 if (get_dyn_sym_info (ia64_info, h, abfd, rel, TRUE) == NULL)
2988 h = elf_sym_hashes (abfd)[indx];
3138 dyn_i = get_dyn_sym_info (ia64_info, h, abfd, rel, FALSE);
3149 got = get_got (abfd, info, ia64_info);
3168 fptr = get_fptr (abfd, info, ia64_info);
3179 (info, abfd, (long) r_symndx)))
3190 ia64_info->root.dynobj = abfd;
3202 pltoff = get_pltoff (abfd, info, ia64_info);
3213 srel = get_reloc_section (abfd, ia64_info, sec, TRUE);
3217 if (!count_dyn_reloc (abfd, dyn_i, srel, dynrel_type,
4090 elfNN_ia64_install_dyn_reloc (abfd, info, sec, srel, offset, type,
4092 bfd *abfd;
4107 outrel.r_offset = _bfd_elf_section_offset (abfd, info, sec, offset);
4121 bfd_elfNN_swap_reloca_out (abfd, &outrel, loc);
4129 set_got_entry (abfd, info, dyn_i, dynindx, addend, value, dyn_r_type)
4130 bfd *abfd;
4185 bfd_put_64 (abfd, value, got_sec->contents + got_offset);
4214 if (bfd_big_endian (abfd))
4254 elfNN_ia64_install_dyn_reloc (abfd, NULL, got_sec,
4273 set_fptr_entry (abfd, info, dyn_i, value)
4274 bfd *abfd;
4290 bfd_put_64 (abfd, value, fptr_sec->contents + dyn_i->fptr_offset);
4291 bfd_put_64 (abfd, _bfd_get_gp_value (abfd),
4298 if (bfd_little_endian (abfd))
4309 bfd_elfNN_swap_reloca_out (abfd, &outrel, loc);
4325 set_pltoff_entry (abfd, info, dyn_i, value, is_plt)
4326 bfd *abfd;
4343 bfd_vma gp = _bfd_get_gp_value (abfd);
4346 bfd_put_64 (abfd, value, pltoff_sec->contents + dyn_i->pltoff_offset);
4347 bfd_put_64 (abfd, gp, pltoff_sec->contents + dyn_i->pltoff_offset + 8);
4358 if (bfd_big_endian (abfd))
4363 elfNN_ia64_install_dyn_reloc (abfd, NULL, pltoff_sec,
4367 elfNN_ia64_install_dyn_reloc (abfd, NULL, pltoff_sec,
4433 elfNN_ia64_choose_gp (abfd, info)
4434 bfd *abfd;
4448 for (os = abfd->sections; os ; os = os->next)
4529 bfd_get_filename (abfd),
4540 bfd_get_filename (abfd));
4545 _bfd_set_gp_value (abfd, gp_val);
4551 elfNN_ia64_final_link (abfd, info)
4552 bfd *abfd;
4568 _bfd_set_gp_value (abfd, 0);
4569 if (! elfNN_ia64_choose_gp (abfd, info))
4571 gp_val = _bfd_get_gp_value (abfd);
4589 asection *s = bfd_get_section_by_name (abfd, ELF_STRING_ia64_unwind);
4601 if (!bfd_elf_final_link (abfd, info))
4606 elfNN_ia64_unwind_entry_compare_bfd = abfd;
4612 if (! bfd_set_section_contents (abfd, unwind_output_sec,
5434 elfNN_ia64_finish_dynamic_sections (abfd, info)
5435 bfd *abfd;
5456 gp_val = _bfd_get_gp_value (abfd);
5496 bfd_elfNN_swap_dyn_out (abfd, &dyn, dyncon);
5523 elfNN_ia64_set_private_flags (abfd, flags)
5524 bfd *abfd;
5527 BFD_ASSERT (!elf_flags_init (abfd)
5528 || elf_elfheader (abfd)->e_flags == flags);
5530 elf_elfheader (abfd)->e_flags = flags;
5531 elf_flags_init (abfd) = TRUE;
5627 elfNN_ia64_print_private_bfd_data (abfd, ptr)
5628 bfd *abfd;
5632 flagword flags = elf_elfheader (abfd)->e_flags;
5634 BFD_ASSERT (abfd != NULL && ptr != NULL);
5646 _bfd_elf_print_private_bfd_data (abfd, ptr);
5679 elfNN_ia64_object_p (bfd *abfd)
5688 if (abfd->flags & DYNAMIC)
5697 for (sec = abfd->sections; sec != NULL; sec = sec->next)
5707 unwi_name = bfd_alloc (abfd, amt);
5712 unwi = bfd_get_section_by_name (abfd, unwi_name);
5715 unw_name = bfd_alloc (abfd, amt);
5720 unw = bfd_get_section_by_name (abfd, unw_name);
5724 group = bfd_make_section_anyway_with_flags (abfd, name,
5730 bfd_section_list_remove (abfd, group);
5731 bfd_section_list_prepend (abfd, group);
5779 elfNN_hpux_post_process_headers (abfd, info)
5780 bfd *abfd;
5783 Elf_Internal_Ehdr *i_ehdrp = elf_elfheader (abfd);
5785 i_ehdrp->e_ident[EI_OSABI] = get_elf_backend_data (abfd)->elf_osabi;
5790 elfNN_hpux_backend_section_from_bfd_section (abfd, sec, retval)
5791 bfd *abfd ATTRIBUTE_UNUSED;
5804 elfNN_hpux_backend_symbol_processing (bfd *abfd ATTRIBUTE_UNUSED,