| /netbsd-src/external/bsd/elftoolchain/dist/libelf/ |
| H A D | gelf_symshndx.c | 51 uint32_t sh_type; in gelf_getsymshndx() local 78 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsymshndx() 80 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsymshndx() 82 if (_libelf_xlate_shtype(sh_type) != ELF_T_WORD || in gelf_getsymshndx() 111 uint32_t sh_type; in gelf_update_symshndx() local 130 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_symshndx() 132 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_symshndx() 134 if (_libelf_xlate_shtype(sh_type) != ELF_T_WORD || in gelf_update_symshndx()
|
| H A D | gelf_cap.c | 53 uint32_t sh_type; in gelf_getcap() local 69 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getcap() 71 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getcap() 73 if (_libelf_xlate_shtype(sh_type) != ELF_T_CAP) { in gelf_getcap() 112 uint32_t sh_type; in gelf_update_cap() local 128 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_cap() 130 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_cap() 132 if (_libelf_xlate_shtype(sh_type) != ELF_T_CAP) { in gelf_update_cap()
|
| H A D | gelf_syminfo.c | 50 uint32_t sh_type; in gelf_getsyminfo() local 68 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsyminfo() 70 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsyminfo() 72 if (_libelf_xlate_shtype(sh_type) != ELF_T_SYMINFO) { in gelf_getsyminfo() 111 uint32_t sh_type; in gelf_update_syminfo() local 129 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_syminfo() 131 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_syminfo() 133 if (_libelf_xlate_shtype(sh_type) != ELF_T_SYMINFO) { in gelf_update_syminfo()
|
| H A D | gelf_dyn.c | 53 uint32_t sh_type; in gelf_getdyn() local 69 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getdyn() 71 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getdyn() 73 if (_libelf_xlate_shtype(sh_type) != ELF_T_DYN) { in gelf_getdyn() 113 uint32_t sh_type; in gelf_update_dyn() local 129 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_dyn() 131 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_dyn() 133 if (_libelf_xlate_shtype(sh_type) != ELF_T_DYN) { in gelf_update_dyn()
|
| H A D | gelf_move.c | 52 uint32_t sh_type; in gelf_getmove() local 70 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getmove() 72 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getmove() 74 if (_libelf_xlate_shtype(sh_type) != ELF_T_MOVE) { in gelf_getmove() 115 uint32_t sh_type; in gelf_update_move() local 133 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_move() 135 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_move() 137 if (_libelf_xlate_shtype(sh_type) != ELF_T_MOVE) { in gelf_update_move()
|
| H A D | gelf_rel.c | 51 uint32_t sh_type; in gelf_getrel() local 69 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrel() 71 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrel() 73 if (_libelf_xlate_shtype(sh_type) != ELF_T_REL) { in gelf_getrel() 113 uint32_t sh_type; in gelf_update_rel() local 131 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rel() 133 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rel() 135 if (_libelf_xlate_shtype(sh_type) != ELF_T_REL) { in gelf_update_rel()
|
| H A D | gelf_rela.c | 52 uint32_t sh_type; in gelf_getrela() local 70 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrela() 72 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrela() 74 if (_libelf_xlate_shtype(sh_type) != ELF_T_RELA) { in gelf_getrela() 115 uint32_t sh_type; in gelf_update_rela() local 133 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rela() 135 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rela() 137 if (_libelf_xlate_shtype(sh_type) != ELF_T_RELA) { in gelf_update_rela()
|
| H A D | gelf_sym.c | 52 uint32_t sh_type; in gelf_getsym() local 70 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsym() 72 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsym() 74 if (_libelf_xlate_shtype(sh_type) != ELF_T_SYM) { in gelf_getsym() 114 uint32_t sh_type; in gelf_update_sym() local 132 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_sym() 134 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_sym() 136 if (_libelf_xlate_shtype(sh_type) != ELF_T_SYM) { in gelf_update_sym()
|
| H A D | elf_data.c | 50 unsigned int sh_type; in elf_getdata() local 88 sh_type = s->s_shdr.s_shdr32.sh_type; in elf_getdata() 93 sh_type = s->s_shdr.s_shdr64.sh_type; in elf_getdata() 99 if (sh_type == SHT_NULL) { in elf_getdata() 105 if ((elftype = _libelf_xlate_shtype(sh_type)) < ELF_T_FIRST || in elf_getdata() 106 elftype > ELF_T_LAST || (sh_type != SHT_NOBITS && in elf_getdata() 152 if (sh_type == SHT_NOBITS || sh_size == 0) { in elf_getdata() 228 uint32_t sh_type; in elf_rawdata() local 252 sh_type = s->s_shdr.s_shdr32.sh_type; in elf_rawdata() 257 sh_type = s->s_shdr.s_shdr64.sh_type; in elf_rawdata() [all …]
|
| H A D | elf_update.c | 124 uint32_t sh_type; in _libelf_compute_section_extents() local 137 sh_type = shdr32->sh_type; in _libelf_compute_section_extents() 143 sh_type = shdr64->sh_type; in _libelf_compute_section_extents() 150 assert(sh_type != SHT_NULL && sh_type != SHT_NOBITS); in _libelf_compute_section_extents() 152 elftype = _libelf_xlate_shtype(sh_type); in _libelf_compute_section_extents() 461 size_t sh_type; in _libelf_resync_sections() local 471 sh_type = s->s_shdr.s_shdr32.sh_type; in _libelf_resync_sections() 473 sh_type = s->s_shdr.s_shdr64.sh_type; in _libelf_resync_sections() 475 if (sh_type == SHT_NOBITS || sh_type == SHT_NULL) in _libelf_resync_sections() 734 uint32_t sh_type; in _libelf_write_scn() local [all …]
|
| H A D | gelf_shdr.c | 81 d->sh_type = sh32->sh_type; in gelf_getshdr() 128 sh32->sh_type = s->sh_type; in gelf_update_shdr()
|
| /netbsd-src/external/gpl3/binutils/dist/gold/ |
| H A D | copy-relocs.cc | 36 template<int sh_type, int size, bool big_endian> 38 Copy_relocs<sh_type, size, big_endian>::copy_reloc( in copy_reloc() 48 Output_data_reloc<sh_type, true, size, big_endian>* reloc_section) in copy_reloc() argument 64 template<int sh_type, int size, bool big_endian> 66 Copy_relocs<sh_type, size, big_endian>::need_copy_reloc( in need_copy_reloc() 89 template<int sh_type, int size, bool big_endian> 91 Copy_relocs<sh_type, size, big_endian>::emit_copy_reloc( in emit_copy_reloc() 96 Output_data_reloc<sh_type, true, size, big_endian>* reloc_section) in emit_copy_reloc() argument 108 template<int sh_type, int size, bool big_endian> 110 Copy_relocs<sh_type, size, big_endian>::make_copy_reloc( in make_copy_reloc() [all …]
|
| H A D | reloc.cc | 283 unsigned int sh_type = shdr.get_sh_type(); in do_read_relocs() local 284 if (sh_type != elfcpp::SHT_REL && sh_type != elfcpp::SHT_RELA) in do_read_relocs() 329 if (sh_type == elfcpp::SHT_REL) in do_read_relocs() 355 sr.sh_type = sh_type; in do_read_relocs() 410 p->data_shndx, p->sh_type, in do_gc_process_relocs() 463 p->sh_type, p->contents->data(), in do_scan_relocs() 479 p->data_shndx, p->sh_type, in do_scan_relocs() 525 p->sh_type, in emit_relocs_scan() 542 if (p->sh_type == elfcpp::SHT_REL) in incremental_relocs_scan() 546 gold_assert(p->sh_type == elfcpp::SHT_RELA); in incremental_relocs_scan() [all …]
|
| H A D | copy-relocs.h | 49 template<int sh_type, int size, bool big_endian> 53 typedef typename Reloc_types<sh_type, size, big_endian>::Reloc Reloc; 78 Output_data_reloc<sh_type, true, size, big_endian>*); 88 emit(Output_data_reloc<sh_type, true, size, big_endian>*); 94 Output_data_reloc<sh_type, true, size, big_endian>*); 128 Output_data_reloc<sh_type, true, size, big_endian>*);
|
| /netbsd-src/external/gpl3/binutils.old/dist/gold/ |
| H A D | copy-relocs.cc | 36 template<int sh_type, int size, bool big_endian> 38 Copy_relocs<sh_type, size, big_endian>::copy_reloc( in copy_reloc() 48 Output_data_reloc<sh_type, true, size, big_endian>* reloc_section) in copy_reloc() argument 64 template<int sh_type, int size, bool big_endian> 66 Copy_relocs<sh_type, size, big_endian>::need_copy_reloc( in need_copy_reloc() 89 template<int sh_type, int size, bool big_endian> 91 Copy_relocs<sh_type, size, big_endian>::emit_copy_reloc( in emit_copy_reloc() 96 Output_data_reloc<sh_type, true, size, big_endian>* reloc_section) in emit_copy_reloc() argument 108 template<int sh_type, int size, bool big_endian> 110 Copy_relocs<sh_type, size, big_endian>::make_copy_reloc( in make_copy_reloc() [all …]
|
| H A D | reloc.cc | 283 unsigned int sh_type = shdr.get_sh_type(); in do_read_relocs() local 284 if (sh_type != elfcpp::SHT_REL && sh_type != elfcpp::SHT_RELA) in do_read_relocs() 329 if (sh_type == elfcpp::SHT_REL) in do_read_relocs() 355 sr.sh_type = sh_type; in do_read_relocs() 410 p->data_shndx, p->sh_type, in do_gc_process_relocs() 463 p->sh_type, p->contents->data(), in do_scan_relocs() 479 p->data_shndx, p->sh_type, in do_scan_relocs() 525 p->sh_type, in emit_relocs_scan() 542 if (p->sh_type == elfcpp::SHT_REL) in incremental_relocs_scan() 546 gold_assert(p->sh_type == elfcpp::SHT_RELA); in incremental_relocs_scan() [all …]
|
| H A D | copy-relocs.h | 49 template<int sh_type, int size, bool big_endian> 53 typedef typename Reloc_types<sh_type, size, big_endian>::Reloc Reloc; 78 Output_data_reloc<sh_type, true, size, big_endian>*); 88 emit(Output_data_reloc<sh_type, true, size, big_endian>*); 94 Output_data_reloc<sh_type, true, size, big_endian>*); 128 Output_data_reloc<sh_type, true, size, big_endian>*);
|
| /netbsd-src/external/gpl3/gcc.old/dist/libiberty/ |
| H A D | simple-object-elf.c | 166 unsigned char sh_type[4]; /* Type of section */ member 181 unsigned char sh_type[4]; /* Type of section */ member 847 unsigned int sh_type, unsigned int sh_flags, in simple_object_elf_write_shdr() argument 871 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_type, Elf_Word, sh_type); in simple_object_elf_write_shdr() 964 unsigned int sh_type = SHT_PROGBITS; in simple_object_elf_write_to_file() local 973 sh_type = ELF_FETCH_FIELD (attrs->type_functions, attrs->ei_class, Shdr, in simple_object_elf_write_to_file() 975 sh_type, Elf_Word); in simple_object_elf_write_to_file() 1027 sh_name, sh_type, sh_flags, in simple_object_elf_write_to_file() 1162 unsigned int sh_name, sh_type; in simple_object_elf_copy_lto_debug_sections() local 1187 sh_type = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_copy_lto_debug_sections() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libiberty/ |
| H A D | simple-object-elf.c | 166 unsigned char sh_type[4]; /* Type of section */ member 181 unsigned char sh_type[4]; /* Type of section */ member 847 unsigned int sh_type, unsigned int sh_flags, in simple_object_elf_write_shdr() argument 871 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_type, Elf_Word, sh_type); in simple_object_elf_write_shdr() 964 unsigned int sh_type = SHT_PROGBITS; in simple_object_elf_write_to_file() local 973 sh_type = ELF_FETCH_FIELD (attrs->type_functions, attrs->ei_class, Shdr, in simple_object_elf_write_to_file() 975 sh_type, Elf_Word); in simple_object_elf_write_to_file() 1027 sh_name, sh_type, sh_flags, in simple_object_elf_write_to_file() 1162 unsigned int sh_name, sh_type; in simple_object_elf_copy_lto_debug_sections() local 1187 sh_type = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_copy_lto_debug_sections() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/libiberty/ |
| H A D | simple-object-elf.c | 166 unsigned char sh_type[4]; /* Type of section */ member 181 unsigned char sh_type[4]; /* Type of section */ member 847 unsigned int sh_type, unsigned int sh_flags, in simple_object_elf_write_shdr() argument 871 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_type, Elf_Word, sh_type); in simple_object_elf_write_shdr() 964 unsigned int sh_type = SHT_PROGBITS; in simple_object_elf_write_to_file() local 973 sh_type = ELF_FETCH_FIELD (attrs->type_functions, attrs->ei_class, Shdr, in simple_object_elf_write_to_file() 975 sh_type, Elf_Word); in simple_object_elf_write_to_file() 1027 sh_name, sh_type, sh_flags, in simple_object_elf_write_to_file() 1162 unsigned int sh_name, sh_type; in simple_object_elf_copy_lto_debug_sections() local 1187 sh_type = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_copy_lto_debug_sections() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/libiberty/ |
| H A D | simple-object-elf.c | 166 unsigned char sh_type[4]; /* Type of section */ member 181 unsigned char sh_type[4]; /* Type of section */ member 847 unsigned int sh_type, unsigned int sh_flags, in simple_object_elf_write_shdr() argument 871 ELF_SET_FIELD (fns, cl, Shdr, buf, sh_type, Elf_Word, sh_type); in simple_object_elf_write_shdr() 964 unsigned int sh_type = SHT_PROGBITS; in simple_object_elf_write_to_file() local 973 sh_type = ELF_FETCH_FIELD (attrs->type_functions, attrs->ei_class, Shdr, in simple_object_elf_write_to_file() 975 sh_type, Elf_Word); in simple_object_elf_write_to_file() 1027 sh_name, sh_type, sh_flags, in simple_object_elf_write_to_file() 1162 unsigned int sh_name, sh_type; in simple_object_elf_copy_lto_debug_sections() local 1187 sh_type = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, in simple_object_elf_copy_lto_debug_sections() [all …]
|
| /netbsd-src/sys/arch/amd64/stand/prekern/ |
| H A D | elf.c | 69 if (shdr->sh_type != SHT_NOBITS && in elf_section_mappable() 70 shdr->sh_type != SHT_PROGBITS) { in elf_section_mappable() 91 if (shdr->sh_type == SHT_NOTE) { in elf_can_drop_unmappable() 314 if (eif.shdr[i].sh_type != SHT_STRTAB && in elf_fixup_boot() 315 eif.shdr[i].sh_type != SHT_REL && in elf_fixup_boot() 316 eif.shdr[i].sh_type != SHT_RELA && in elf_fixup_boot() 317 eif.shdr[i].sh_type != SHT_SYMTAB) { in elf_fixup_boot() 394 if (eif.shdr[i].sh_type == SHT_SYMTAB) in elf_build_info() 411 if (eif.shdr[j].sh_type != SHT_STRTAB) { in elf_build_info() 460 if (eif.shdr[i].sh_type != SHT_REL) { in elf_kernel_reloc() [all …]
|
| /netbsd-src/sys/arch/hpcmips/stand/pbsdboot/ |
| H A D | elf.c | 246 if (shtbl[i].sh_type == SHT_SYMTAB) { in scanfile() 249 if ((shtbl[i].sh_type == SHT_STRTAB) in scanfile() 293 dbg_sh[0].sh_type = shtbl[sh_symidx].sh_type; in scanfile() 297 dbg_sh[1].sh_type = shtbl[sh_stridx].sh_type; in scanfile()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Object/ |
| H A D | ELFObjectFile.h | 318 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI() 319 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI() 371 if (Sec.sh_type == ELF::SHT_ARM_ATTRIBUTES || in getBuildAttributes() 372 Sec.sh_type == ELF::SHT_RISCV_ATTRIBUTES) { in getBuildAttributes() 465 switch (Sec.sh_type) { in initContent() 525 return getSection(Sec)->sh_type; in getSectionType() 842 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents() 870 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData() 879 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS() 893 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/ |
| H A D | acinclude.m4 | 314 sh_type='%progbits' 318 sh_type='@progbits' 322 sh_type='#progbits' 329 .section .dtors,$sh_flags,$sh_type 332 .section .ctors,$sh_flags,$sh_type 335 .section .fini_array.65530,$sh_flags,$sh_type 338 .section .init_array.65530,$sh_flags,$sh_type 341 .section .dtors.64528,$sh_flags,$sh_type 344 .section .ctors.64528,$sh_flags,$sh_type 347 .section .fini_array.01005,$sh_flags,$sh_type [all …]
|