Lines Matching defs:bed
261 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
263 bed->target_id);
379 const struct elf_backend_data *bed;
399 bed = get_elf_backend_data (ibfd);
400 extsym_size = bed->s->sizeof_sym;
452 if (!(*bed->s->swap_symbol_in) (ibfd, esym, shndx, isym))
769 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
770 if (bed->link_order_error_handler)
771 bed->link_order_error_handler
857 const struct elf_backend_data *bed;
951 bed = get_elf_backend_data (abfd);
952 if (bed->elf_backend_section_flags)
953 if (! bed->elf_backend_section_flags (&flags, hdr))
1264 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
1275 if (bed->elf_backend_get_target_dtag)
1276 name = (*bed->elf_backend_get_target_dtag) (dyn.d_tag);
1449 const struct elf_backend_data *bed;
1455 bed = get_elf_backend_data (abfd);
1456 if (bed->elf_backend_print_symbol_all)
1457 name = (*bed->elf_backend_print_symbol_all) (abfd, filep, symbol);
1581 const struct elf_backend_data *bed;
1628 bed = get_elf_backend_data (abfd);
1703 if (hdr->sh_entsize != bed->s->sizeof_sym)
1767 if (hdr->sh_entsize != bed->s->sizeof_sym)
1875 ? bed->s->sizeof_rel : bed->s->sizeof_rela))
2045 || hdr->sh_type == bed->obj_attrs_section_type)
2054 if (bed->elf_backend_section_from_shdr (abfd, hdr, name, shindex))
2367 const struct elf_backend_data *bed;
2373 bed = get_elf_backend_data (abfd);
2374 spec = bed->special_sections;
2378 bed->special_sections,
2403 const struct elf_backend_data *bed;
2417 bed = get_elf_backend_data (abfd);
2418 sec->use_rela_p = bed->default_use_rela_p;
2432 ssect = (*bed->get_sec_type_attr) (abfd, sec);
2564 const struct elf_backend_data *bed;
2605 bed = get_elf_backend_data (abfd);
2606 return bed->elf_backend_section_from_phdr (abfd, hdr, hdr_index, "proc");
2638 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
2658 ? bed->s->sizeof_rela
2659 : bed->s->sizeof_rel);
2660 rel_hdr->sh_addralign = (bfd_vma) 1 << bed->s->log_file_align;
2692 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
2769 this_hdr->sh_entsize = bed->s->sizeof_hash_entry;
2773 this_hdr->sh_entsize = bed->s->sizeof_sym;
2777 this_hdr->sh_entsize = bed->s->sizeof_dyn;
2782 this_hdr->sh_entsize = bed->s->sizeof_rela;
2787 this_hdr->sh_entsize = bed->s->sizeof_rel;
2823 this_hdr->sh_entsize = bed->s->arch_size == 64 ? 0 : 4;
2898 if (bed->elf_backend_fake_sections
2899 && !(*bed->elf_backend_fake_sections) (abfd, this_hdr, asect))
3242 const struct elf_backend_data *bed
3244 if (bed->link_order_error_handler)
3245 bed->link_order_error_handler
3360 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
3361 if (bed->elf_backend_sym_is_global)
3362 return (*bed->elf_backend_sym_is_global) (abfd, sym);
3549 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
3560 if (bed->elf_backend_begin_write_processing)
3561 (*bed->elf_backend_begin_write_processing) (abfd, link_info);
3567 (*bed->elf_backend_post_process_headers) (abfd, link_info);
3655 const struct elf_backend_data *bed;
3729 bed = get_elf_backend_data (abfd);
3730 if (bed->elf_backend_additional_program_headers)
3734 a = (*bed->elf_backend_additional_program_headers) (abfd, info);
3740 return segs * bed->s->sizeof_phdr;
3828 const struct elf_backend_data *bed;
3858 bed = get_elf_backend_data (abfd);
3859 if (bed->elf_backend_modify_segment_map != NULL)
3861 if (!(*bed->elf_backend_modify_segment_map) (abfd, info))
3876 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
3977 maxpagesize = bed->maxpagesize;
3994 phdr_size += bed->s->sizeof_ehdr;
4281 m->p_align = bed->stack_align;
4340 elf_program_header_size (abfd) = count * bed->s->sizeof_phdr;
4422 vma_offset = m->sections[0]->vma % bed->maxpagesize;
4423 off_offset = off % bed->maxpagesize;
4425 adjustment = vma_offset + bed->maxpagesize - off_offset;
4492 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
4516 elf_elfheader (abfd)->e_phoff = bed->s->sizeof_ehdr;
4517 elf_elfheader (abfd)->e_phentsize = bed->s->sizeof_phdr;
4529 elf_program_header_size (abfd) = alloc * bed->s->sizeof_phdr;
4532 >= alloc * bed->s->sizeof_phdr);
4536 elf_next_file_pos (abfd) = bed->s->sizeof_ehdr;
4549 BFD_ASSERT (elf_program_header_size (abfd) % bed->s->sizeof_phdr
4553 (elf_program_header_size (abfd) / bed->s->sizeof_phdr),
4561 maxpagesize = bed->maxpagesize;
4563 off = bed->s->sizeof_ehdr;
4564 off += alloc * bed->s->sizeof_phdr;
4616 value for maxpagesize rather than bed->maxpagesize, which
4629 p->p_align = 1 << bed->s->log_file_align;
4716 p->p_filesz = bed->s->sizeof_ehdr;
4717 p->p_memsz = bed->s->sizeof_ehdr;
4742 p->p_offset = bed->s->sizeof_ehdr;
4752 p->p_filesz += alloc * bed->s->sizeof_phdr;
4753 p->p_memsz += alloc * bed->s->sizeof_phdr;
4963 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
5002 bed->maxpagesize);
5024 phdrs_vaddr = bed->maxpagesize + bed->s->sizeof_ehdr;
5046 phdrs_vaddr += bed->s->sizeof_ehdr;
5047 phdrs_paddr += bed->s->sizeof_ehdr;
5229 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
5278 if (bed->elf_backend_modify_program_headers != NULL)
5280 if (!(*bed->elf_backend_modify_program_headers) (abfd, link_info))
5306 alloc = elf_program_header_size (abfd) / bed->s->sizeof_phdr;
5307 if (bfd_seek (abfd, (bfd_signed_vma) bed->s->sizeof_ehdr, SEEK_SET) != 0
5308 || bed->s->write_out_phdrs (abfd, tdata->phdr, alloc) != 0)
5320 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
5335 i_ehdrp->e_ident[EI_CLASS] = bed->s->elfclass;
5338 i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current;
5364 i_ehdrp->e_machine = bed->elf_machine_code;
5367 i_ehdrp->e_version = bed->s->ev_current;
5368 i_ehdrp->e_ehsize = bed->s->sizeof_ehdr;
5377 i_ehdrp->e_shentsize = bed->s->sizeof_shdr;
5413 const struct elf_backend_data *bed;
5430 bed = get_elf_backend_data (abfd);
5431 off = align_file_position (off, 1 << bed->s->log_file_align);
5440 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
5453 bfd_map_over_sections (abfd, bed->s->write_relocs, &failed);
5463 if (bed->elf_backend_section_processing)
5464 (*bed->elf_backend_section_processing) (abfd, i_shdrp[count]);
5482 if (bed->elf_backend_final_write_processing)
5483 (*bed->elf_backend_final_write_processing) (abfd, elf_linker (abfd));
5485 if (!bed->s->write_shdrs_and_ehdr (abfd))
5507 const struct elf_backend_data *bed;
5523 bed = get_elf_backend_data (abfd);
5524 if (bed->elf_backend_section_from_bfd_section)
5528 if ((*bed->elf_backend_section_from_bfd_section) (abfd, asect, &retval))
5612 const struct elf_backend_data *bed;
5614 bed = get_elf_backend_data (ibfd);
5690 #define IS_SECTION_IN_INPUT_SEGMENT(section, segment, bed) \
5713 #define INCLUDE_SECTION_IN_SEGMENT(section, segment, bed) \
5714 (IS_SECTION_IN_INPUT_SEGMENT (section, segment, bed) \
5856 if (IS_SECTION_IN_INPUT_SEGMENT (section, segment, bed))
5977 if (INCLUDE_SECTION_IN_SEGMENT (section, segment, bed))
5989 && !bed->want_p_paddr_set_to_zero
6006 || (bed->want_p_paddr_set_to_zero
6046 && !bed->want_p_paddr_set_to_zero
6445 const struct elf_backend_data *bed;
6447 bed = get_elf_backend_data (ibfd);
6450 if (bed->want_p_paddr_set_to_zero)
6778 const struct elf_backend_data *bed;
6800 bed = get_elf_backend_data (abfd);
6804 symtab_hdr->sh_entsize = bed->s->sizeof_sym;
6807 symtab_hdr->sh_addralign = (bfd_vma) 1 << bed->s->log_file_align;
6813 bed->s->sizeof_sym);
6852 bed->s->swap_symbol_out (abfd, &sym, outbound_syms, outbound_shndx);
6853 outbound_syms += bed->s->sizeof_sym;
6859 = (bed->elf_backend_name_local_section_symbols
6860 && bed->elf_backend_name_local_section_symbols (abfd));
7008 && bed->elf_backend_get_symbol_type)
7009 type = ((*bed->elf_backend_get_symbol_type)
7063 bed->s->swap_symbol_out (abfd, &sym, outbound_syms, outbound_shndx);
7064 outbound_syms += bed->s->sizeof_sym;
7142 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
7144 if (! bed->s->slurp_reloc_table (abfd, section, symbols, FALSE))
7159 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
7160 long symcount = bed->s->slurp_symbol_table (abfd, allocation, FALSE);
7171 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
7172 long symcount = bed->s->slurp_symbol_table (abfd, allocation, TRUE);
7702 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
7726 size = bed->maybe_function_sym (sym, section, &code_off);
7851 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
7852 int ret = bed->s->sizeof_ehdr;
7864 phdr_size += bed->s->sizeof_phdr;
8651 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
8659 if (bed->elf_backend_grok_prstatus)
8660 if ((*bed->elf_backend_grok_prstatus) (abfd, note))
8805 if (bed->elf_backend_grok_psinfo)
8806 if ((*bed->elf_backend_grok_psinfo) (abfd, note))
9273 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
9275 if (bed->elf_backend_write_core_note != NULL)
9278 ret = (*bed->elf_backend_write_core_note) (abfd, buf, bufsiz,
9286 if (bed->s->elfclass == ELFCLASS32)
9361 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
9363 if (bed->elf_backend_write_core_note != NULL)
9366 ret = (*bed->elf_backend_write_core_note) (abfd, buf, bufsiz,
9375 if (bed->s->elfclass == ELFCLASS32)
9446 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
9448 if (bed->s->elfclass == ELFCLASS32)
9970 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
9971 bfd_size_type address_size = bed->s->arch_size / 8;
10013 const struct elf_backend_data *bed = get_elf_backend_data (abfd);
10033 if (!bed->plt_sym_val)
10036 relplt_name = bed->relplt_name;
10038 relplt_name = bed->rela_plts_and_copies_p ? ".rela.plt" : ".rel.plt";
10059 for (i = 0; i < count; i++, p += bed->s->int_rels_per_ext_rel)
10065 size += sizeof ("+0x") - 1 + 8 + 8 * (bed->s->elfclass == ELFCLASS64);
10079 for (i = 0; i < count; i++, p += bed->s->int_rels_per_ext_rel)
10084 addr = bed->plt_sym_val (i, plt, p);