| /netbsd/src/external/gpl3/binutils/dist/bfd/ |
| D | elf64-sparc.c | 82 Elf_Internal_Shdr *rel_hdr, in elf64_sparc_slurp_one_reloc_table() argument 93 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0) in elf64_sparc_slurp_one_reloc_table() 95 allocated = _bfd_malloc_and_read (abfd, rel_hdr->sh_size, rel_hdr->sh_size); in elf64_sparc_slurp_one_reloc_table() 103 entsize = rel_hdr->sh_entsize; in elf64_sparc_slurp_one_reloc_table() 106 count = rel_hdr->sh_size / entsize; in elf64_sparc_slurp_one_reloc_table() 190 Elf_Internal_Shdr *rel_hdr; in elf64_sparc_slurp_reloc_table() local 203 rel_hdr = d->rel.hdr; in elf64_sparc_slurp_reloc_table() 206 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf64_sparc_slurp_reloc_table() 218 rel_hdr = &d->this_hdr; in elf64_sparc_slurp_reloc_table() 219 asect->reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in elf64_sparc_slurp_reloc_table() [all …]
|
| D | elf64-mips.c | 4009 Elf_Internal_Shdr *rel_hdr, in mips_elf64_slurp_one_reloc_table() argument 4022 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0) in mips_elf64_slurp_one_reloc_table() 4024 allocated = _bfd_malloc_and_read (abfd, rel_hdr->sh_size, rel_hdr->sh_size); in mips_elf64_slurp_one_reloc_table() 4030 entsize = rel_hdr->sh_entsize; in mips_elf64_slurp_one_reloc_table() 4185 Elf_Internal_Shdr *rel_hdr; in mips_elf64_slurp_reloc_table() local 4201 rel_hdr = d->rel.hdr; in mips_elf64_slurp_reloc_table() 4202 reloc_count = rel_hdr ? NUM_SHDR_ENTRIES (rel_hdr) : 0; in mips_elf64_slurp_reloc_table() 4207 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in mips_elf64_slurp_reloc_table() 4220 rel_hdr = &d->this_hdr; in mips_elf64_slurp_reloc_table() 4221 reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in mips_elf64_slurp_reloc_table() [all …]
|
| D | elfcode.h | 1542 Elf_Internal_Shdr *rel_hdr, in elf_slurp_reloc_table_from_section() argument 1556 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0) in elf_slurp_reloc_table_from_section() 1558 allocated = _bfd_malloc_and_read (abfd, rel_hdr->sh_size, rel_hdr->sh_size); in elf_slurp_reloc_table_from_section() 1564 entsize = rel_hdr->sh_entsize; in elf_slurp_reloc_table_from_section() 1647 Elf_Internal_Shdr *rel_hdr; in elf_slurp_reloc_table() local 1663 rel_hdr = d->rel.hdr; in elf_slurp_reloc_table() 1664 reloc_count = rel_hdr ? NUM_SHDR_ENTRIES (rel_hdr) : 0; in elf_slurp_reloc_table() 1671 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf_slurp_reloc_table() 1684 rel_hdr = &d->this_hdr; in elf_slurp_reloc_table() 1685 reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in elf_slurp_reloc_table() [all …]
|
| D | elf-bfd.h | 3234 Elf_Internal_Shdr *rel_hdr; \ 3236 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); \ 3239 if (rel_hdr->sh_size > rel_hdr->sh_entsize) \ 3241 rel_hdr->sh_size -= rel_hdr->sh_entsize; \ 3242 rel_hdr = _bfd_elf_single_rel_hdr (input_section); \ 3243 rel_hdr->sh_size -= rel_hdr->sh_entsize; \
|
| D | elf32-metag.c | 1400 Elf_Internal_Shdr *rel_hdr; \ 1402 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); \ 1405 if (rel_hdr->sh_size > rel_hdr->sh_entsize) \ 1407 rel_hdr->sh_size -= rel_hdr->sh_entsize; \ 1408 rel_hdr = _bfd_elf_single_rel_hdr (input_section); \ 1409 rel_hdr->sh_size -= rel_hdr->sh_entsize; \
|
| D | elf32-i386.c | 3553 Elf_Internal_Shdr *rel_hdr; in elf_i386_relocate_section() local 3556 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); in elf_i386_relocate_section() 3557 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in elf_i386_relocate_section() 3558 if (rel_hdr->sh_size == 0) in elf_i386_relocate_section() 3563 rel_hdr->sh_size = rel_hdr->sh_entsize; in elf_i386_relocate_section() 3566 rel_hdr = _bfd_elf_single_rel_hdr (input_section); in elf_i386_relocate_section() 3567 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in elf_i386_relocate_section()
|
| D | elf64-x86-64.c | 4437 Elf_Internal_Shdr *rel_hdr; in elf_x86_64_relocate_section() local 4440 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); in elf_x86_64_relocate_section() 4441 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in elf_x86_64_relocate_section() 4442 if (rel_hdr->sh_size == 0) in elf_x86_64_relocate_section() 4447 rel_hdr->sh_size = rel_hdr->sh_entsize; in elf_x86_64_relocate_section() 4450 rel_hdr = _bfd_elf_single_rel_hdr (input_section); in elf_x86_64_relocate_section() 4451 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in elf_x86_64_relocate_section()
|
| D | elf32-ppc.c | 6631 Elf_Internal_Shdr *rel_hdr; in ppc_elf_relax_section() local 6650 rel_hdr = _bfd_elf_single_rel_hdr (isec); in ppc_elf_relax_section() 6651 rel_hdr->sh_size += changes * rel_hdr->sh_entsize; in ppc_elf_relax_section() 9150 Elf_Internal_Shdr *rel_hdr; in ppc_elf_relocate_section() local 9153 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); in ppc_elf_relocate_section() 9154 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in ppc_elf_relocate_section() 9155 if (rel_hdr->sh_size == 0) in ppc_elf_relocate_section() 9160 rel_hdr->sh_size = rel_hdr->sh_entsize; in ppc_elf_relocate_section() 9165 rel_hdr = _bfd_elf_single_rel_hdr (input_section); in ppc_elf_relocate_section() 9166 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in ppc_elf_relocate_section()
|
| D | elf.c | 3631 Elf_Internal_Shdr *rel_hdr, in _bfd_elf_set_reloc_sh_name() argument 3641 rel_hdr->sh_name = in _bfd_elf_set_reloc_sh_name() 3644 if (rel_hdr->sh_name == (unsigned int) -1) in _bfd_elf_set_reloc_sh_name() 3662 Elf_Internal_Shdr *rel_hdr; in _bfd_elf_init_reloc_shdr() local 3666 rel_hdr = bfd_zalloc (abfd, sizeof (*rel_hdr)); in _bfd_elf_init_reloc_shdr() 3667 if (rel_hdr == NULL) in _bfd_elf_init_reloc_shdr() 3669 reldata->hdr = rel_hdr; in _bfd_elf_init_reloc_shdr() 3672 rel_hdr->sh_name = (unsigned int) -1; in _bfd_elf_init_reloc_shdr() 3673 else if (!_bfd_elf_set_reloc_sh_name (abfd, rel_hdr, sec_name, in _bfd_elf_init_reloc_shdr() 3676 rel_hdr->sh_type = use_rela_p ? SHT_RELA : SHT_REL; in _bfd_elf_init_reloc_shdr() [all …]
|
| D | elf32-tic6x.c | 2114 Elf_Internal_Shdr *rel_hdr; in elf32_tic6x_rel_relocation_p() local 2119 rel_hdr = elf_section_data (sec)->rel.hdr; in elf32_tic6x_rel_relocation_p() 2120 if (rel_hdr == NULL) in elf32_tic6x_rel_relocation_p() 2124 < NUM_SHDR_ENTRIES (rel_hdr) * bed->s->int_rels_per_ext_rel); in elf32_tic6x_rel_relocation_p()
|
| D | elf64-ppc.c | 7531 Elf_Internal_Shdr *rel_hdr; in ppc64_elf_edit_opd() local 7715 rel_hdr = _bfd_elf_single_rel_hdr (sec); in ppc64_elf_edit_opd() 7716 rel_hdr->sh_size = sec->reloc_count * rel_hdr->sh_entsize; in ppc64_elf_edit_opd() 9476 Elf_Internal_Shdr *rel_hdr; in ppc64_elf_edit_toc() local 9503 rel_hdr = _bfd_elf_single_rel_hdr (toc); in ppc64_elf_edit_toc() 9504 sz = rel_hdr->sh_entsize; in ppc64_elf_edit_toc() 9505 rel_hdr->sh_size = toc->reloc_count * sz; in ppc64_elf_edit_toc() 18066 Elf_Internal_Shdr *rel_hdr; in ppc64_elf_relocate_section() local 18069 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); in ppc64_elf_relocate_section() 18070 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in ppc64_elf_relocate_section() [all …]
|
| D | elf32-arm.c | 15777 Elf_Internal_Shdr *rel_hdr; in elf32_arm_update_relocs() local 15788 rel_hdr = reldata->hdr; in elf32_arm_update_relocs() 15790 if (rel_hdr->sh_entsize == bed->s->sizeof_rel) in elf32_arm_update_relocs() 15795 else if (rel_hdr->sh_entsize == bed->s->sizeof_rela) in elf32_arm_update_relocs() 15803 erela_head = rel_hdr->contents; in elf32_arm_update_relocs() 15805 ((NUM_SHDR_ENTRIES (rel_hdr) + 1) * sizeof (*irela_head)); in elf32_arm_update_relocs() 15817 erela += rel_hdr->sh_entsize; in elf32_arm_update_relocs() 15838 eadi->elf.rel.hdr->sh_entsize == rel_hdr->sh_entsize) in elf32_arm_update_relocs() 15841 eadi->elf.rela.hdr->sh_entsize == rel_hdr->sh_entsize) in elf32_arm_update_relocs() 15875 erela += rel_hdr->sh_entsize; in elf32_arm_update_relocs() [all …]
|
| /netbsd/src/external/gpl3/gdb/dist/bfd/ |
| D | elf64-sparc.c | 82 Elf_Internal_Shdr *rel_hdr, in elf64_sparc_slurp_one_reloc_table() argument 93 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0) in elf64_sparc_slurp_one_reloc_table() 95 allocated = _bfd_malloc_and_read (abfd, rel_hdr->sh_size, rel_hdr->sh_size); in elf64_sparc_slurp_one_reloc_table() 103 entsize = rel_hdr->sh_entsize; in elf64_sparc_slurp_one_reloc_table() 106 count = rel_hdr->sh_size / entsize; in elf64_sparc_slurp_one_reloc_table() 190 Elf_Internal_Shdr *rel_hdr; in elf64_sparc_slurp_reloc_table() local 203 rel_hdr = d->rel.hdr; in elf64_sparc_slurp_reloc_table() 206 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf64_sparc_slurp_reloc_table() 218 rel_hdr = &d->this_hdr; in elf64_sparc_slurp_reloc_table() 219 asect->reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in elf64_sparc_slurp_reloc_table() [all …]
|
| D | elf64-mips.c | 4007 Elf_Internal_Shdr *rel_hdr, in mips_elf64_slurp_one_reloc_table() argument 4020 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0) in mips_elf64_slurp_one_reloc_table() 4022 allocated = _bfd_malloc_and_read (abfd, rel_hdr->sh_size, rel_hdr->sh_size); in mips_elf64_slurp_one_reloc_table() 4028 entsize = rel_hdr->sh_entsize; in mips_elf64_slurp_one_reloc_table() 4183 Elf_Internal_Shdr *rel_hdr; in mips_elf64_slurp_reloc_table() local 4199 rel_hdr = d->rel.hdr; in mips_elf64_slurp_reloc_table() 4200 reloc_count = rel_hdr ? NUM_SHDR_ENTRIES (rel_hdr) : 0; in mips_elf64_slurp_reloc_table() 4205 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in mips_elf64_slurp_reloc_table() 4218 rel_hdr = &d->this_hdr; in mips_elf64_slurp_reloc_table() 4219 reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in mips_elf64_slurp_reloc_table() [all …]
|
| D | elfcode.h | 1541 Elf_Internal_Shdr *rel_hdr, in elf_slurp_reloc_table_from_section() argument 1555 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0) in elf_slurp_reloc_table_from_section() 1557 allocated = _bfd_malloc_and_read (abfd, rel_hdr->sh_size, rel_hdr->sh_size); in elf_slurp_reloc_table_from_section() 1563 entsize = rel_hdr->sh_entsize; in elf_slurp_reloc_table_from_section() 1646 Elf_Internal_Shdr *rel_hdr; in elf_slurp_reloc_table() local 1662 rel_hdr = d->rel.hdr; in elf_slurp_reloc_table() 1663 reloc_count = rel_hdr ? NUM_SHDR_ENTRIES (rel_hdr) : 0; in elf_slurp_reloc_table() 1670 BFD_ASSERT ((rel_hdr && asect->rel_filepos == rel_hdr->sh_offset) in elf_slurp_reloc_table() 1683 rel_hdr = &d->this_hdr; in elf_slurp_reloc_table() 1684 reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in elf_slurp_reloc_table() [all …]
|
| D | elf-bfd.h | 3272 Elf_Internal_Shdr *rel_hdr; \ 3274 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); \ 3277 if (rel_hdr->sh_size > rel_hdr->sh_entsize) \ 3279 rel_hdr->sh_size -= rel_hdr->sh_entsize; \ 3280 rel_hdr = _bfd_elf_single_rel_hdr (input_section); \ 3281 rel_hdr->sh_size -= rel_hdr->sh_entsize; \
|
| D | elf32-metag.c | 1400 Elf_Internal_Shdr *rel_hdr; \ 1402 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); \ 1405 if (rel_hdr->sh_size > rel_hdr->sh_entsize) \ 1407 rel_hdr->sh_size -= rel_hdr->sh_entsize; \ 1408 rel_hdr = _bfd_elf_single_rel_hdr (input_section); \ 1409 rel_hdr->sh_size -= rel_hdr->sh_entsize; \
|
| D | elf32-i386.c | 3546 Elf_Internal_Shdr *rel_hdr; in elf_i386_relocate_section() local 3549 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); in elf_i386_relocate_section() 3550 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in elf_i386_relocate_section() 3551 if (rel_hdr->sh_size == 0) in elf_i386_relocate_section() 3556 rel_hdr->sh_size = rel_hdr->sh_entsize; in elf_i386_relocate_section() 3559 rel_hdr = _bfd_elf_single_rel_hdr (input_section); in elf_i386_relocate_section() 3560 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in elf_i386_relocate_section()
|
| D | elf64-x86-64.c | 4547 Elf_Internal_Shdr *rel_hdr; in elf_x86_64_relocate_section() local 4550 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); in elf_x86_64_relocate_section() 4551 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in elf_x86_64_relocate_section() 4552 if (rel_hdr->sh_size == 0) in elf_x86_64_relocate_section() 4557 rel_hdr->sh_size = rel_hdr->sh_entsize; in elf_x86_64_relocate_section() 4560 rel_hdr = _bfd_elf_single_rel_hdr (input_section); in elf_x86_64_relocate_section() 4561 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in elf_x86_64_relocate_section()
|
| D | elf32-ppc.c | 6632 Elf_Internal_Shdr *rel_hdr; in ppc_elf_relax_section() local 6651 rel_hdr = _bfd_elf_single_rel_hdr (isec); in ppc_elf_relax_section() 6652 rel_hdr->sh_size += changes * rel_hdr->sh_entsize; in ppc_elf_relax_section() 9151 Elf_Internal_Shdr *rel_hdr; in ppc_elf_relocate_section() local 9154 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); in ppc_elf_relocate_section() 9155 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in ppc_elf_relocate_section() 9156 if (rel_hdr->sh_size == 0) in ppc_elf_relocate_section() 9161 rel_hdr->sh_size = rel_hdr->sh_entsize; in ppc_elf_relocate_section() 9166 rel_hdr = _bfd_elf_single_rel_hdr (input_section); in ppc_elf_relocate_section() 9167 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in ppc_elf_relocate_section()
|
| D | elf.c | 3625 Elf_Internal_Shdr *rel_hdr, in _bfd_elf_set_reloc_sh_name() argument 3635 rel_hdr->sh_name = in _bfd_elf_set_reloc_sh_name() 3638 if (rel_hdr->sh_name == (unsigned int) -1) in _bfd_elf_set_reloc_sh_name() 3656 Elf_Internal_Shdr *rel_hdr; in _bfd_elf_init_reloc_shdr() local 3660 rel_hdr = bfd_zalloc (abfd, sizeof (*rel_hdr)); in _bfd_elf_init_reloc_shdr() 3661 if (rel_hdr == NULL) in _bfd_elf_init_reloc_shdr() 3663 reldata->hdr = rel_hdr; in _bfd_elf_init_reloc_shdr() 3666 rel_hdr->sh_name = (unsigned int) -1; in _bfd_elf_init_reloc_shdr() 3667 else if (!_bfd_elf_set_reloc_sh_name (abfd, rel_hdr, sec_name, in _bfd_elf_init_reloc_shdr() 3670 rel_hdr->sh_type = use_rela_p ? SHT_RELA : SHT_REL; in _bfd_elf_init_reloc_shdr() [all …]
|
| D | elf32-tic6x.c | 2114 Elf_Internal_Shdr *rel_hdr; in elf32_tic6x_rel_relocation_p() local 2119 rel_hdr = elf_section_data (sec)->rel.hdr; in elf32_tic6x_rel_relocation_p() 2120 if (rel_hdr == NULL) in elf32_tic6x_rel_relocation_p() 2124 < NUM_SHDR_ENTRIES (rel_hdr) * bed->s->int_rels_per_ext_rel); in elf32_tic6x_rel_relocation_p()
|
| D | elf64-ppc.c | 7531 Elf_Internal_Shdr *rel_hdr; in ppc64_elf_edit_opd() local 7715 rel_hdr = _bfd_elf_single_rel_hdr (sec); in ppc64_elf_edit_opd() 7716 rel_hdr->sh_size = sec->reloc_count * rel_hdr->sh_entsize; in ppc64_elf_edit_opd() 9476 Elf_Internal_Shdr *rel_hdr; in ppc64_elf_edit_toc() local 9503 rel_hdr = _bfd_elf_single_rel_hdr (toc); in ppc64_elf_edit_toc() 9504 sz = rel_hdr->sh_entsize; in ppc64_elf_edit_toc() 9505 rel_hdr->sh_size = toc->reloc_count * sz; in ppc64_elf_edit_toc() 18055 Elf_Internal_Shdr *rel_hdr; in ppc64_elf_relocate_section() local 18058 rel_hdr = _bfd_elf_single_rel_hdr (input_section->output_section); in ppc64_elf_relocate_section() 18059 rel_hdr->sh_size -= rel_hdr->sh_entsize * deleted; in ppc64_elf_relocate_section() [all …]
|
| D | elf32-arm.c | 15754 Elf_Internal_Shdr *rel_hdr; in elf32_arm_update_relocs() local 15765 rel_hdr = reldata->hdr; in elf32_arm_update_relocs() 15767 if (rel_hdr->sh_entsize == bed->s->sizeof_rel) in elf32_arm_update_relocs() 15772 else if (rel_hdr->sh_entsize == bed->s->sizeof_rela) in elf32_arm_update_relocs() 15780 erela_head = rel_hdr->contents; in elf32_arm_update_relocs() 15782 ((NUM_SHDR_ENTRIES (rel_hdr) + 1) * sizeof (*irela_head)); in elf32_arm_update_relocs() 15794 erela += rel_hdr->sh_entsize; in elf32_arm_update_relocs() 15815 eadi->elf.rel.hdr->sh_entsize == rel_hdr->sh_entsize) in elf32_arm_update_relocs() 15818 eadi->elf.rela.hdr->sh_entsize == rel_hdr->sh_entsize) in elf32_arm_update_relocs() 15852 erela += rel_hdr->sh_entsize; in elf32_arm_update_relocs() [all …]
|
| /netbsd/src/external/gpl3/binutils/dist/ld/emultempl/ |
| D | xtensaelf.em | 103 Elf_Internal_Shdr *rel_hdr; 148 rel_hdr = _bfd_elf_single_rel_hdr (prop_sec); 149 rel_hdr->sh_entsize = sizeof (Elf32_External_Rela); 150 rel_hdr->sh_size = _bfd_elf_single_rel_hdr (insn_sec)->sh_size;
|