| /NextBSD/contrib/binutils/bfd/ |
| HD | elf64-sparc.c | 55 Elf_Internal_Shdr *rel_hdr, in elf64_sparc_slurp_one_reloc_table() argument 66 allocated = (PTR) 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 (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 …]
|
| HD | elf64-mips.c | 2412 Elf_Internal_Shdr *rel_hdr, in mips_elf64_slurp_one_reloc_table() argument 2424 allocated = bfd_malloc (rel_hdr->sh_size); in mips_elf64_slurp_one_reloc_table() 2428 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0 in mips_elf64_slurp_one_reloc_table() 2429 || (bfd_bread (allocated, rel_hdr->sh_size, abfd) in mips_elf64_slurp_one_reloc_table() 2430 != rel_hdr->sh_size)) in mips_elf64_slurp_one_reloc_table() 2435 entsize = rel_hdr->sh_entsize; in mips_elf64_slurp_one_reloc_table() 2585 Elf_Internal_Shdr *rel_hdr; in mips_elf64_slurp_reloc_table() local 2601 rel_hdr = &d->rel_hdr; in mips_elf64_slurp_reloc_table() 2602 reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in mips_elf64_slurp_reloc_table() 2607 BFD_ASSERT (asect->rel_filepos == rel_hdr->sh_offset in mips_elf64_slurp_reloc_table() [all …]
|
| HD | elfcode.h | 950 rela_hdr = &elf_section_data (sec)->rel_hdr; in elf_write_relocs() 1350 Elf_Internal_Shdr *rel_hdr, in elf_slurp_reloc_table_from_section() argument 1364 allocated = bfd_malloc (rel_hdr->sh_size); in elf_slurp_reloc_table_from_section() 1368 if (bfd_seek (abfd, rel_hdr->sh_offset, SEEK_SET) != 0 in elf_slurp_reloc_table_from_section() 1369 || (bfd_bread (allocated, rel_hdr->sh_size, abfd) in elf_slurp_reloc_table_from_section() 1370 != rel_hdr->sh_size)) in elf_slurp_reloc_table_from_section() 1375 entsize = rel_hdr->sh_entsize; in elf_slurp_reloc_table_from_section() 1452 Elf_Internal_Shdr *rel_hdr; in elf_slurp_reloc_table() local 1468 rel_hdr = &d->rel_hdr; in elf_slurp_reloc_table() 1469 reloc_count = NUM_SHDR_ENTRIES (rel_hdr); in elf_slurp_reloc_table() [all …]
|
| HD | elflink.c | 2146 Elf_Internal_Shdr *rel_hdr; in _bfd_elf_link_read_relocs() local 2157 rel_hdr = &elf_section_data (o)->rel_hdr; in _bfd_elf_link_read_relocs() 2175 bfd_size_type size = rel_hdr->sh_size; in _bfd_elf_link_read_relocs() 2185 if (!elf_link_read_relocs_from_section (abfd, o, rel_hdr, in _bfd_elf_link_read_relocs() 2193 ((bfd_byte *) external_relocs) + rel_hdr->sh_size, in _bfd_elf_link_read_relocs() 2194 internal_relocs + (NUM_SHDR_ENTRIES (rel_hdr) in _bfd_elf_link_read_relocs() 2223 Elf_Internal_Shdr *rel_hdr, in _bfd_elf_link_size_reloc_section() argument 2230 if (rel_hdr == &elf_section_data (o)->rel_hdr) in _bfd_elf_link_size_reloc_section() 2240 rel_hdr->sh_size = rel_hdr->sh_entsize * reloc_count; in _bfd_elf_link_size_reloc_section() 2246 rel_hdr->contents = bfd_zalloc (abfd, rel_hdr->sh_size); in _bfd_elf_link_size_reloc_section() [all …]
|
| HD | elf.c | 2124 hdr2 = &elf_section_data (target_sect)->rel_hdr; in bfd_section_from_shdr() 2727 Elf_Internal_Shdr *rel_hdr, in _bfd_elf_init_reloc_shdr() argument 2739 rel_hdr->sh_name = in _bfd_elf_init_reloc_shdr() 2742 if (rel_hdr->sh_name == (unsigned int) -1) in _bfd_elf_init_reloc_shdr() 2744 rel_hdr->sh_type = use_rela_p ? SHT_RELA : SHT_REL; in _bfd_elf_init_reloc_shdr() 2745 rel_hdr->sh_entsize = (use_rela_p in _bfd_elf_init_reloc_shdr() 2748 rel_hdr->sh_addralign = 1 << bed->s->log_file_align; in _bfd_elf_init_reloc_shdr() 2749 rel_hdr->sh_flags = 0; in _bfd_elf_init_reloc_shdr() 2750 rel_hdr->sh_addr = 0; in _bfd_elf_init_reloc_shdr() 2751 rel_hdr->sh_size = 0; in _bfd_elf_init_reloc_shdr() [all …]
|
| HD | elf32-spu.c | 2844 Elf_Internal_Shdr *rel_hdr; in spu_elf_relocate_section() local 2858 rel_hdr = &elf_section_data (input_section)->rel_hdr; in spu_elf_relocate_section() 2859 rel_hdr->sh_size = input_section->reloc_count * rel_hdr->sh_entsize; in spu_elf_relocate_section()
|
| HD | elf64-ppc.c | 4951 elf_section_data (sec)->rel_hdr.sh_name)); in ppc64_elf_check_relocs() 6777 elf_section_data (sec)->rel_hdr.sh_size in ppc64_elf_edit_opd() 6778 = sec->reloc_count * elf_section_data (sec)->rel_hdr.sh_entsize; in ppc64_elf_edit_opd() 7616 sz = elf_section_data (toc)->rel_hdr.sh_entsize; in ppc64_elf_edit_toc() 7617 elf_section_data (toc)->rel_hdr.sh_size = toc->reloc_count * sz; in ppc64_elf_edit_toc() 8465 elfsec_data->rel_hdr.sh_size = relsize; in ppc_build_one_stub() 8466 elfsec_data->rel_hdr.sh_entsize = 24; in ppc_build_one_stub() 8563 elfsec_data->rel_hdr.sh_size = relsize; in ppc_build_one_stub() 8564 elfsec_data->rel_hdr.sh_entsize = 24; in ppc_build_one_stub() 11799 &elf_section_data (htab->brlt)->rel_hdr, in ppc64_elf_finish_dynamic_sections()
|
| HD | elfxx-mips.c | 603 ((NUM_SHDR_ENTRIES (&elf_section_data (sec)->rel_hdr) \ 606 == (elf_section_data (sec)->rel_hdr.sh_entsize \ 7802 Elf_Internal_Shdr *rel_hdr; in _bfd_mips_elf_relocate_section() local 7810 rel_hdr = &elf_section_data (input_section)->rel_hdr; in _bfd_mips_elf_relocate_section() 7812 >= (NUM_SHDR_ENTRIES (rel_hdr) * bed->s->int_rels_per_ext_rel)) in _bfd_mips_elf_relocate_section() 7813 rel_hdr = elf_section_data (input_section)->rel_hdr2; in _bfd_mips_elf_relocate_section() 7814 if (rel_hdr->sh_entsize == MIPS_ELF_REL_SIZE (input_bfd)) in _bfd_mips_elf_relocate_section()
|
| HD | elfxx-sparc.c | 1098 num_relocs = NUM_SHDR_ENTRIES (& elf_section_data (sec)->rel_hdr); in _bfd_sparc_elf_check_relocs() 1435 elf_section_data (sec)->rel_hdr.sh_name)); in _bfd_sparc_elf_check_relocs() 2494 num_relocs = NUM_SHDR_ENTRIES (& elf_section_data (input_section)->rel_hdr); in _bfd_sparc_elf_relocate_section()
|
| HD | elf-bfd.h | 1165 Elf_Internal_Shdr rel_hdr; member
|
| HD | elf64-alpha.c | 1921 elf_section_data(sec)->rel_hdr.sh_name)); in elf64_alpha_check_relocs() 4047 elf_section_data(input_section)->rel_hdr.sh_name)); in elf64_alpha_relocate_section()
|
| HD | elf32-ppc.c | 3600 elf_section_data (sec)->rel_hdr.sh_name)); in ppc_elf_check_relocs() 6572 elf_section_data (input_section)->rel_hdr.sh_name)); in ppc_elf_relocate_section()
|
| HD | elf32-s390.c | 1285 elf_section_data (sec)->rel_hdr.sh_name));
|
| HD | elf64-s390.c | 1252 elf_section_data (sec)->rel_hdr.sh_name));
|
| HD | elf32-i386.c | 1188 unsigned int shnam = elf_section_data (sec)->rel_hdr.sh_name; in elf_i386_check_relocs()
|
| HD | elf64-x86-64.c | 1041 elf_section_data (sec)->rel_hdr.sh_name)); in elf64_x86_64_check_relocs()
|
| HD | elf32-arm.c | 4652 elf_section_data (input_section)->rel_hdr.sh_name)); in elf32_arm_final_link_relocate() 7782 elf_section_data (sec)->rel_hdr.sh_name)); in elf32_arm_check_relocs()
|
| HD | elfxx-ia64.c | 2701 elf_section_data(sec)->rel_hdr.sh_name));
|
| HD | ChangeLog-0203 | 4192 * elflink.h (elf_bfd_final_link): Apportion reloc counts to rel_hdr 5547 rel_hdr.sh_size too.
|
| HD | ChangeLog-9899 | 1282 and rel_hdr.
|
| /NextBSD/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
| HD | ObjectFileELF.cpp | 2232 GetPltEntrySizeAndOffset(const ELFSectionHeader* rel_hdr, const ELFSectionHeader* plt_hdr) in GetPltEntrySizeAndOffset() argument 2234 const elf_xword num_relocations = rel_hdr->sh_size / rel_hdr->sh_entsize; in GetPltEntrySizeAndOffset() 2263 const ELFSectionHeader *rel_hdr, in ParsePLTRelocations() argument 2276 std::tie(plt_entsize, plt_offset) = GetPltEntrySizeAndOffset(rel_hdr, plt_hdr); in ParsePLTRelocations() 2277 const elf_xword num_relocations = rel_hdr->sh_size / rel_hdr->sh_entsize; in ParsePLTRelocations() 2337 const ELFSectionHeaderInfo *rel_hdr, in ParseTrampolineSymbols() argument 2340 assert(rel_hdr->sh_type == SHT_RELA || rel_hdr->sh_type == SHT_REL); in ParseTrampolineSymbols() 2344 user_id_t symtab_id = rel_hdr->sh_link; in ParseTrampolineSymbols() 2345 user_id_t plt_id = rel_hdr->sh_info; in ParseTrampolineSymbols() 2410 rel_hdr, in ParseTrampolineSymbols() [all …]
|
| HD | ObjectFileELF.h | 341 RelocateDebugSections(const elf::ELFSectionHeader *rel_hdr, lldb::user_id_t rel_id); 344 …tion(lldb_private::Symtab* symtab, const elf::ELFHeader *hdr, const elf::ELFSectionHeader *rel_hdr,
|