Home
last modified time | relevance | path

Searched refs:Shdr (Results 1 – 25 of 60) sorted by relevance

123

/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c255 Shdr *sp; in fake_elf64()
353 size += sizeof (Shdr); in fake_elf64()
354 size += sizeof (Shdr); in fake_elf64()
382 size += sizeof (Shdr); /* SUNW_ldynsym shdr */ in fake_elf64()
393 size += sizeof (Shdr) + ldynsym_size + dynsym_size; in fake_elf64()
396 size += sizeof (Shdr); in fake_elf64()
400 size += sizeof (Shdr); in fake_elf64()
442 size += sizeof (Shdr); in fake_elf64()
461 ep->e_shentsize = sizeof (Shdr); in fake_elf64()
471 sp = (Shdr *)(elfdata + ep->e_shoff); in fake_elf64()
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dsections.c362 Shdr *shdr; in ignore_section_processing()
430 Is_desc **ret_isec, Shdr **ret_shdr, Elf_Data **ret_data) in new_section()
441 Shdr *shdr; in new_section()
650 if ((shdr = libld_calloc(1, sizeof (Shdr))) == NULL) in new_section()
695 Is_desc **ret_isec, Shdr **ret_shdr, Elf_Data **ret_data) in new_section_from_template()
697 Shdr *shdr; in new_section_from_template()
714 if ((shdr = libld_malloc(sizeof (Shdr))) == NULL) in new_section_from_template()
748 Shdr *shdr; in ld_make_bss()
828 Shdr *shdr; in make_array()
910 Shdr *shdr; in make_comment()
[all …]
H A Dgroups.c166 Shdr *sshdr, *gshdr = gisc->is_shdr; in ld_group_process()
168 Shdr *new_shdr = NULL; in ld_group_process()
299 new_shdr = libld_malloc(sizeof (Shdr)); in ld_group_process()
303 memcpy(new_shdr, gisc->is_shdr, sizeof (Shdr)); in ld_group_process()
H A Dplace.c53 Shdr *shdr = isp->is_shdr; in set_addralign()
662 static Shdr *
665 Shdr *shdr; in isp_convert_type()
667 if ((shdr = libld_malloc(sizeof (Shdr))) == NULL) in isp_convert_type()
816 Shdr *shdr = isp->is_shdr; in ld_place_section()
1194 Shdr *os_shdr = osp->os_shdr; in ld_place_section()
1349 if ((osp->os_shdr = libld_calloc(1, sizeof (Shdr))) == NULL) in ld_place_section()
H A Dfiles.c118 Shdr *shdr0; in ifl_setup()
166 section_is_exclude(Ofl_desc *ofl, Shdr *shdr) in section_is_exclude()
182 process_section(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_section()
1207 Shdr *shdr = isp->is_shdr; in process_capinfo()
1320 process_input(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_input()
1335 process_reloc(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_reloc()
1360 process_strtab(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_strtab()
1415 invalid_section(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in invalid_section()
1475 process_progbits_alloc(const char *name, Ifl_desc *ifl, Shdr *shdr, in process_progbits_alloc()
1569 process_progbits(const char *name, Ifl_desc *ifl, Shdr *shdr, Elf_Scn *scn, in process_progbits()
[all …]
H A Dsupport.c254 Shdr **oshdr, Word ndx, Elf_Scn *scn, Elf *elf) in ld_sup_input_section()
262 Shdr *nshdr = *oshdr; in ld_sup_input_section()
301 ld_sup_section(Ofl_desc *ofl, const char *scn, Shdr *shdr, Word ndx, in ld_sup_section()
H A Dunwind.c323 Shdr *shdr; in ld_unwind_make_hdr()
350 if ((shdr = libld_calloc(1, sizeof (Shdr))) == NULL) in ld_unwind_make_hdr()
543 Shdr *shdr; in ld_unwind_populate_hdr()
/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_reloc.c139 Shdr * shp; in do_relocate()
140 shp = (Shdr *)mp->shdrs; in do_relocate()
288 Shdr *shp, *rshp; in do_relocations()
293 rshp = (Shdr *) in do_relocations()
315 shp = (Shdr *) in do_relocations()
H A Dkobj_isa.c105 Shdr *shp; in get_progbits_size()
112 shp = (Shdr *)(mp->shdrs + shn * mp->hdr.e_shentsize); in get_progbits_size()
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dshdr.c33 Elf_shdr(Lm_list *lml, uchar_t osabi, Half mach, Shdr *shdr) in Elf_shdr()
62 Word ndx, Shdr *oshdr, Shdr *nshdr, const char *name) in Dbg_shdr_modified()
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dupdate.c221 Shdr *sh = s->s_shdr; in _elf_upd_lib()
320 Shdr *sh; in _elf_upd_lib()
321 sh = (Shdr *)elf->ed_hdscn->s_shdr; in _elf_upd_lib()
399 Shdr *sh = s->s_shdr; in _elf_upd_usr()
436 Shdr *sh; in _elf_upd_usr()
437 sh = (Shdr *)elf->ed_hdscn->s_shdr; in _elf_upd_usr()
583 Shdr *sh = s->s_shdr; in wrt()
676 src.d_size = sizeof (Shdr); in wrt()
912 Shdr *sh = s->s_shdr; in _elfxx_swap_wrimage()
947 src.d_size = dst.d_size = sizeof (Shdr); in _elfxx_swap_wrimage()
H A Dclscook.c112 s->s_shdr = (Shdr*)s->s_elf->ed_shdr + s->s_index; in _elf_prepscn()
145 Shdr * sh; in _elf_cookscn()
370 Shdr sh; in _elf_shdr()
382 dst.d_size = sizeof (Shdr); in _elf_shdr()
392 msz = scncnt * sizeof (Shdr); in _elf_shdr()
403 elf->ed_shdr = (Shdr *)(elf->ed_ident + eh->e_shoff); in _elf_shdr()
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c45 Shdr shdr[KSHDR_NUM]; /* section headers */
82 Shdr *symhdr = base; in ksyms_walk_one()
83 Shdr *strhdr = symhdr + symhdr->sh_link; in ksyms_walk_one()
133 Shdr *shp; in ksyms_snapshot()
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Dsyms.c47 Shdr *shdr; in update_sym()
86 Shdr *shdr; in syminfo()
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_isa.c87 Shdr *shp; in get_progbits_size()
94 shp = (Shdr *)(mp->shdrs + shn * mp->hdr.e_shentsize); in get_progbits_size()
H A Dkobj_reloc.c297 Shdr *shp, *rshp; in do_relocations()
302 rshp = (Shdr *) in do_relocations()
325 shp = (Shdr *) in do_relocations()
/illumos-gate/usr/src/cmd/mdb/common/kmdb/
H A Dkvm.h58 Shdr km_symtab_hdr;
59 Shdr km_strtab_hdr;
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.h169 const void *, Shdr *, const void *, Shdr *, int *);
H A Dmdb_kvm.h57 Shdr km_symtab_hdr; /* Native .symtab section header */
58 Shdr km_strtab_hdr; /* Native .strtab section header */
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c1158 Shdr shdr; in getelfhead()
1225 #define MINSHDRSZ (offsetof(Shdr, sh_entsize) + \
1226 sizeof (((Shdr *)NULL)->sh_entsize))
1234 Shdr *shdr; in getelfshdr()
1251 if (*shsizep > sizeof (Shdr) * elf_nshdr_max) { in getelfshdr()
1269 shdr = (Shdr *)(*shbasep + shstrndx * ehdr->e_shentsize); in getelfshdr()
1636 elf_copy_scn(elf_core_ctx_t *ctx, const Shdr *src, vnode_t *src_vp, Shdr *dst) in elf_copy_scn()
1684 Shdr *v, uint_t idx, const uint_t remain, shstrtab_t *shstrtab, in elf_process_obj_scns()
1690 Shdr *ctf = NULL, *symtab = NULL, *strtab = NULL; in elf_process_obj_scns()
1723 Shdr *shdr, *symchk = NULL, *strchk; in elf_process_obj_scns()
[all …]
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c733 mp->symhdr = kobj_zalloc(sizeof (Shdr), KM_WAIT); in load_exec()
736 mp->strhdr = kobj_zalloc(sizeof (Shdr), KM_WAIT); in load_exec()
887 Shdr *shp; in load_linker()
909 shp = (Shdr *)(mp->shdrs + (i * mp->hdr.e_shentsize)); in load_linker()
927 mp->strhdr = (Shdr *) in load_linker()
1533 mp->symsize = (2 * sizeof (Shdr)) + (nsyms * symsize) + in kobj_export_ksyms()
1548 mp->symhdr = (Shdr *)mp->shdrs; in kobj_export_ksyms()
1549 mp->strhdr = (Shdr *)(mp->symhdr + 1); in kobj_export_ksyms()
1600 Shdr *shp; in kobj_export_ksyms()
1603 shp = (Shdr *)(omp->shdrs + shn * omp->hdr.e_shentsize); in kobj_export_ksyms()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c313 Shdr *shdr = cache[ndx].c_shdr; in stringtbl()
399 Shdr *shdr; in symlookup()
470 Shdr *shdr = _cache->c_shdr; in sections()
566 Shdr *shdr = _cache->c_shdr; in unwind_eh_frame()
957 Shdr *shdr = _cache->c_shdr; in unwind()
1035 Shdr *shdr; in init_symtbl_state()
1103 Shdr *shdr = _cache->c_shdr; in symbols_getxindex()
1173 Shdr *tshdr; in output_symbol()
1385 Shdr *cishdr = NULL, *cshdr = ccache->c_shdr; in cap_section()
1406 Shdr *sshdr; in cap_section()
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dmachelf.h77 typedef Elf64_Shdr Shdr; typedef
124 typedef Elf32_Shdr Shdr;
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/
H A Dkrtld.c169 dump_shdr(const Shdr *shdr, int i) in dump_shdr()
229 Shdr *shdrs; in modhdrs()
246 nbytes = sizeof (Shdr) * mod.hdr.e_shnum; in modhdrs()
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A D_elfwrap.h58 Shdr *os_shdr; /* section header (output file) */

123