/toolchain/binutils/binutils-2.25/bfd/ |
D | elf64-sparc.c | 55 Elf_Internal_Shdr *rel_hdr, in elf64_sparc_slurp_one_reloc_table() argument 66 allocated = bfd_malloc (rel_hdr->sh_size); in elf64_sparc_slurp_one_reloc_table() 70 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0 in elf64_sparc_slurp_one_reloc_table() 71 || bfd_bread (allocated, rel_hdr->sh_size, abfd) != rel_hdr->sh_size) in elf64_sparc_slurp_one_reloc_table() 78 entsize = rel_hdr->sh_entsize; in elf64_sparc_slurp_one_reloc_table() 81 count = rel_hdr->sh_size / entsize; in elf64_sparc_slurp_one_reloc_table() 152 Elf_Internal_Shdr *rel_hdr; in elf64_sparc_slurp_reloc_table() local 165 rel_hdr = d->rel.hdr; in elf64_sparc_slurp_reloc_table() 168 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf64_sparc_slurp_reloc_table() 180 rel_hdr = &d->this_hdr; in elf64_sparc_slurp_reloc_table() [all …]
|
D | elf64-mips.c | 3703 Elf_Internal_Shdr *rel_hdr, in mips_elf64_slurp_one_reloc_table() argument 3715 allocated = bfd_malloc (rel_hdr->sh_size); in mips_elf64_slurp_one_reloc_table() 3719 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0 in mips_elf64_slurp_one_reloc_table() 3720 || (bfd_bread (allocated, rel_hdr->sh_size, abfd) in mips_elf64_slurp_one_reloc_table() 3721 != rel_hdr->sh_size)) in mips_elf64_slurp_one_reloc_table() 3726 entsize = rel_hdr->sh_entsize; in mips_elf64_slurp_one_reloc_table() 3876 Elf_Internal_Shdr *rel_hdr; in mips_elf64_slurp_reloc_table() local 3892 rel_hdr = d->rel.hdr; in mips_elf64_slurp_reloc_table() 3893 reloc_count = rel_hdr ? NUM_SHDR_ENTRIES (rel_hdr) : 0; in mips_elf64_slurp_reloc_table() 3898 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in mips_elf64_slurp_reloc_table() [all …]
|
D | elfcode.h | 1381 Elf_Internal_Shdr *rel_hdr, in elf_slurp_reloc_table_from_section() argument 1395 allocated = bfd_malloc (rel_hdr->sh_size); in elf_slurp_reloc_table_from_section() 1399 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0 in elf_slurp_reloc_table_from_section() 1400 || (bfd_bread (allocated, rel_hdr->sh_size, abfd) in elf_slurp_reloc_table_from_section() 1401 != rel_hdr->sh_size)) in elf_slurp_reloc_table_from_section() 1406 entsize = rel_hdr->sh_entsize; in elf_slurp_reloc_table_from_section() 1483 Elf_Internal_Shdr *rel_hdr; in elf_slurp_reloc_table() local 1499 rel_hdr = d->rel.hdr; in elf_slurp_reloc_table() 1500 reloc_count = rel_hdr ? NUM_SHDR_ENTRIES (rel_hdr) : 0; in elf_slurp_reloc_table() 1505 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf_slurp_reloc_table() [all …]
|
D | elf-bfd.h | 2495 Elf_Internal_Shdr *rel_hdr; \ 2497 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); \ 2500 if (rel_hdr->sh_size > rel_hdr->sh_entsize) \ 2502 rel_hdr->sh_size -= rel_hdr->sh_entsize; \ 2503 rel_hdr = _bfd_elf_single_rel_hdr (input_section); \ 2504 rel_hdr->sh_size -= rel_hdr->sh_entsize; \
|
D | elf32-metag.c | 1422 Elf_Internal_Shdr *rel_hdr; \ 1424 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); \ 1427 if (rel_hdr->sh_size > rel_hdr->sh_entsize) \ 1429 rel_hdr->sh_size -= rel_hdr->sh_entsize; \ 1430 rel_hdr = _bfd_elf_single_rel_hdr (input_section); \ 1431 rel_hdr->sh_size -= rel_hdr->sh_entsize; \
|
D | elf.c | 2634 Elf_Internal_Shdr *rel_hdr; in _bfd_elf_init_reloc_shdr() local 2641 rel_hdr = bfd_zalloc (abfd, amt); in _bfd_elf_init_reloc_shdr() 2642 reldata->hdr = rel_hdr; in _bfd_elf_init_reloc_shdr() 2649 rel_hdr->sh_name = in _bfd_elf_init_reloc_shdr() 2652 if (rel_hdr->sh_name == (unsigned int) -1) in _bfd_elf_init_reloc_shdr() 2654 rel_hdr->sh_type = use_rela_p ? SHT_RELA : SHT_REL; in _bfd_elf_init_reloc_shdr() 2655 rel_hdr->sh_entsize = (use_rela_p in _bfd_elf_init_reloc_shdr() 2658 rel_hdr->sh_addralign = (bfd_vma) 1 << bed->s->log_file_align; in _bfd_elf_init_reloc_shdr() 2659 rel_hdr->sh_flags = 0; in _bfd_elf_init_reloc_shdr() 2660 rel_hdr->sh_addr = 0; in _bfd_elf_init_reloc_shdr() [all …]
|
D | elf32-tic6x.c | 2206 Elf_Internal_Shdr *rel_hdr; in elf32_tic6x_rel_relocation_p() local 2211 rel_hdr = elf_section_data (sec)->rel.hdr; in elf32_tic6x_rel_relocation_p() 2212 if (rel_hdr == NULL) in elf32_tic6x_rel_relocation_p() 2216 < NUM_SHDR_ENTRIES (rel_hdr) * bed->s->int_rels_per_ext_rel); in elf32_tic6x_rel_relocation_p()
|
D | elflink.c | 2269 Elf_Internal_Shdr *rel_hdr = reldata->hdr; in _bfd_elf_link_size_reloc_section() local 2272 rel_hdr->sh_size = rel_hdr->sh_entsize * reldata->count; in _bfd_elf_link_size_reloc_section() 2278 rel_hdr->contents = (unsigned char *) bfd_zalloc (abfd, rel_hdr->sh_size); in _bfd_elf_link_size_reloc_section() 2279 if (rel_hdr->contents == NULL && rel_hdr->sh_size != 0) in _bfd_elf_link_size_reloc_section() 10071 Elf_Internal_Shdr *rel_hdr; in elf_reloc_link_order() local 10210 rel_hdr = reldata->hdr; in elf_reloc_link_order() 10211 erel = rel_hdr->contents; in elf_reloc_link_order() 10212 if (rel_hdr->sh_type == SHT_REL) in elf_reloc_link_order()
|
D | elf32-spu.c | 5089 Elf_Internal_Shdr *rel_hdr; in spu_elf_relocate_section() local 5103 rel_hdr = _bfd_elf_single_rel_hdr (input_section); in spu_elf_relocate_section() 5104 rel_hdr->sh_size = input_section->reloc_count * rel_hdr->sh_entsize; in spu_elf_relocate_section()
|
D | elf64-ppc.c | 7764 Elf_Internal_Shdr *rel_hdr; in ppc64_elf_edit_opd() local 7939 rel_hdr = _bfd_elf_single_rel_hdr (sec); in ppc64_elf_edit_opd() 7940 rel_hdr->sh_size = sec->reloc_count * rel_hdr->sh_entsize; in ppc64_elf_edit_opd() 9248 Elf_Internal_Shdr *rel_hdr; in ppc64_elf_edit_toc() local 9275 rel_hdr = _bfd_elf_single_rel_hdr (toc); in ppc64_elf_edit_toc() 9276 sz = rel_hdr->sh_entsize; in ppc64_elf_edit_toc() 9277 rel_hdr->sh_size = toc->reloc_count * sz; in ppc64_elf_edit_toc()
|
D | elf32-ppc.c | 7221 Elf_Internal_Shdr *rel_hdr; in ppc_elf_relax_section() local 7240 rel_hdr = _bfd_elf_single_rel_hdr (isec); in ppc_elf_relax_section() 7241 rel_hdr->sh_size += changes * rel_hdr->sh_entsize; in ppc_elf_relax_section()
|
D | elfxx-mips.c | 7767 Elf_Internal_Shdr *rel_hdr; in mips_elf_rel_relocation_p() local 7772 rel_hdr = elf_section_data (sec)->rel.hdr; in mips_elf_rel_relocation_p() 7773 if (rel_hdr == NULL) in mips_elf_rel_relocation_p() 7777 < NUM_SHDR_ENTRIES (rel_hdr) * bed->s->int_rels_per_ext_rel); in mips_elf_rel_relocation_p()
|
D | ChangeLog-2010 | 779 discover the right rel_hdr and count.
|
D | ChangeLog-2007 | 819 * elf64-ppc.c (ppc_build_one_stub): Correct rel_hdr.sh_size.
|
D | ChangeLog-2004 | 43 (ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs.
|
D | ChangeLog-0203 | 4192 * elflink.h (elf_bfd_final_link): Apportion reloc counts to rel_hdr 5547 rel_hdr.sh_size too.
|
D | ChangeLog-9899 | 1282 and rel_hdr.
|
/toolchain/binutils/binutils-2.25/ld/emultempl/ |
D | xtensaelf.em | 100 Elf_Internal_Shdr *rel_hdr; 150 rel_hdr = _bfd_elf_single_rel_hdr (prop_sec); 151 rel_hdr->sh_entsize = sizeof (Elf32_External_Rela); 152 rel_hdr->sh_size = _bfd_elf_single_rel_hdr (insn_sec)->sh_size;
|