Searched refs:sec_shdr (Results 1 – 11 of 11) sorted by relevance
/titanic_44/usr/src/cmd/sgs/elfedit/common/ |
H A D | util_machelf.c | 162 if (shtype == sec->sec_shdr->sh_type) { in elfedit_type_to_shndx() 217 Word cnt = symsec->sec_shdr->sh_size / symsec->sec_shdr->sh_entsize; in elfedit_name_to_symndx() 377 if (cache->sec_shdr->sh_type == SHT_SUNW_cap) { in elfedit_sec_getcap() 382 *num = cache->sec_shdr->sh_size / in elfedit_sec_getcap() 383 cache->sec_shdr->sh_entsize; in elfedit_sec_getcap() 421 *num = cache->sec_shdr->sh_size / cache->sec_shdr->sh_entsize; in elfedit_sec_getdyn() 457 if (cache->sec_shdr->sh_type == SHT_SUNW_syminfo) { in elfedit_sec_getsyminfo() 462 *num = cache->sec_shdr->sh_size / in elfedit_sec_getsyminfo() 463 cache->sec_shdr->sh_entsize; in elfedit_sec_getsyminfo() 509 switch (sec->sec_shdr->sh_type) { in elfedit_sec_issymtab() [all …]
|
H A D | elfedit_machelf.c | 60 Word sh_link = auxsec->sec_shdr->sh_link; in get_symtab() 252 LIBELF(_cache->sec_shdr = elf_getshdr(scn), MSG_ORIG(MSG_ELF_GETSHDR)); in elfedit64_init_obj_state() 253 _cache->sec_name = (_cache->sec_shdr->sh_name < names_len) ? in elfedit64_init_obj_state() 254 (names + _cache->sec_shdr->sh_name) : MSG_INTL(MSG_UNKNOWNSECNAM); in elfedit64_init_obj_state() 269 LIBELF(_cache->sec_shdr = elf_getshdr(scn), in elfedit64_init_obj_state() 272 _cache->sec_name = (_cache->sec_shdr->sh_name < names_len) ? in elfedit64_init_obj_state() 273 (names + _cache->sec_shdr->sh_name) : in elfedit64_init_obj_state() 276 switch (_cache->sec_shdr->sh_type) { in elfedit64_init_obj_state() 304 symsec_cnt = symsec->sec_shdr->sh_size / sizeof (Sym); in elfedit64_init_obj_state() 309 aux_cnt = _cache->sec_shdr->sh_size / sizeof (Word); in elfedit64_init_obj_state() [all …]
|
/titanic_44/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | phdr.c | 310 if ((strsec->sec_shdr->sh_type != SHT_NOBITS) && in locate_interp() 311 (interp->phdr->p_offset >= strsec->sec_shdr->sh_offset) && in locate_interp() 313 (strsec->sec_shdr->sh_offset + in locate_interp() 314 strsec->sec_shdr->sh_size))) { in locate_interp() 318 strsec->sec_shdr->sh_offset; in locate_interp() 569 (strsec->sec_shdr->sh_flags & SHF_ALLOC) && in cmd_body_set_interp() 570 (strsec->sec_shdr->sh_type & SHT_PROGBITS)) { in cmd_body_set_interp() 573 if ((strsec->sec_shdr->sh_offset >= in cmd_body_set_interp() 575 ((strsec->sec_shdr->sh_offset + in cmd_body_set_interp() 576 strsec->sec_shdr->sh_size) <= in cmd_body_set_interp() [all …]
|
H A D | str.c | 207 Shdr *shdr = obj_state->os_secarr[ndx].sec_shdr; in shndx_to_strtab() 224 obj_state->os_secarr[ndx].sec_shdr->sh_link; in shndx_to_strtab() 361 if ((dynsec->sec_shdr->sh_type == SHT_DYNAMIC) && in process_args() 363 dynsec->sec_shdr->sh_link)) { in process_args() 789 Shdr *shdr = sec->sec_shdr; in cpl_sh_opt() 876 if (obj_state->os_secarr[i].sec_shdr-> in cpl_sec_str() 892 (obj_state->os_secarr[strtab_ndx].sec_shdr->sh_type != SHT_STRTAB)) in cpl_sec_str()
|
H A D | ehdr.c | 290 argstate->obj_state->os_secarr[0].sec_shdr); in print_ehdr() 514 os_secarr[0].sec_shdr->sh_info; in print_ehdr() 536 os_secarr[0].sec_shdr->sh_size; in print_ehdr() 553 os_secarr[0].sec_shdr->sh_link; in print_ehdr() 997 Shdr *shdr0 = sec0->sec_shdr; in cmd_body() 1069 Shdr *shdr0 = sec0->sec_shdr; in cmd_body() 1114 Shdr *shdr0 = sec0->sec_shdr; in cmd_body() 1138 (obj_state->os_secarr[shstrndx].sec_shdr->sh_type != in cmd_body() 1503 if (sec->sec_shdr->sh_type != SHT_STRTAB) in cpl_e_shstrndx()
|
H A D | shdr.c | 235 Shdr *shdr = sec->sec_shdr; in print_shdr() 239 if (shdr->sh_type != ref_sec->sec_shdr->sh_type) in print_shdr() 258 Elf_shdr(NULL, osabi, mach, sec->sec_shdr); in print_shdr() 415 shdr = shdr_sec->sec_shdr; in cmd_body()
|
H A D | cap.c | 167 if (argstate->cap.sec->sec_shdr->sh_info == 0) { in argstate_add_str() 177 argstate->cap.sec->sec_shdr->sh_info, 0); in argstate_add_str() 1069 if (cap_sec->sec_shdr->sh_info == 0) in cpl_capid_opt() 1072 str_sec = elfedit_sec_getstr(obj_state, cap_sec->sec_shdr->sh_info, 0); in cpl_capid_opt()
|
H A D | syminfo.c | 223 1, argstate->syminfo.sec->sec_shdr->sh_link, NULL, in argstate_add_sym() 234 argstate->sym.sec->sec_shdr->sh_link, 0); in argstate_add_str()
|
H A D | dyn.c | 264 argstate->dyn.sec->sec_shdr->sh_link, 0); in process_args() 1621 i = cache->sec_shdr->sh_size / cache->sec_shdr->sh_entsize; in cpl_eltarg() 1700 dynsec->sec_shdr->sh_link, 0); in cpl_posflag1()
|
H A D | sym.c | 210 symstate->sym.sec->sec_shdr->sh_link, 0); in symstate_add_str() 713 gbl_ndx = symstate->sym.sec->sec_shdr->sh_info; in cmd_body_set_st_bind() 772 if (symstate->sym.sec->sec_shdr->sh_type == SHT_DYNSYM) in cmd_body_set_st_name()
|
/titanic_44/usr/src/cmd/sgs/include/ |
H A D | elfedit.h | 114 Elf32_Shdr *sec_shdr; /* Section header */ member 122 Elf64_Shdr *sec_shdr; member
|