Home
last modified time | relevance | path

Searched refs:shndx (Results 1 – 25 of 39) sorted by relevance

12

/titanic_51/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c93 int tfd, *shndx, ndx = 1, off = 0; in delete_comment() local
121 * shndx is an array used to map the current section in delete_comment()
124 shndx = calloc(shnum, sizeof (int)); in delete_comment()
137 free(shndx); in delete_comment()
142 shndx[ndx] = -1; in delete_comment()
154 free(shndx); in delete_comment()
158 shndx[ndx] = ndx - off; in delete_comment()
184 free(shndx); in delete_comment()
190 free(shndx); in delete_comment()
201 if (shndx[nd in delete_comment()
[all...]
H A Ddispsyms.c122 "bind oth shndx name\n"); in print_symtab()
133 Elf32_Word shndx; in print_symtab() local
144 &sym, &shndx) == NULL) { in print_symtab()
190 &sym, &shndx) == NULL)) { in print_symtab()
234 shndx = sym.st_shndx; in print_symtab()
237 shndx = sym.st_shndx; in print_symtab()
241 if (shndx == SHN_UNDEF) { in print_symtab()
245 if (shndx == SHN_ABS) in print_symtab()
247 else if (shndx == SHN_COMMON) in print_symtab()
249 else if (shndx in print_symtab()
[all...]
/titanic_51/usr/src/cmd/sgs/elfedit/common/
H A Dutil_machelf.c259 elfedit_shndx_to_name(elfedit_obj_state_t *obj_state, Word shndx) in elfedit_shndx_to_name() argument
275 if ((shndx < obj_state->os_shnum) && in elfedit_shndx_to_name()
276 ((shndx < SHN_LORESERVE) || (shndx > SHN_HIRESERVE)) && in elfedit_shndx_to_name()
277 (shndx != SHN_UNDEF)) in elfedit_shndx_to_name()
278 return (obj_state->os_secarr[shndx].sec_name); in elfedit_shndx_to_name()
286 obj_state->os_ehdr->e_machine, shndx, in elfedit_shndx_to_name()
292 * Locate the arbitrary section specified by shndx for this object.
298 elfedit_sec_get(elfedit_obj_state_t *obj_state, Word shndx) in elfedit_sec_get() argument
302 if ((shndx in elfedit_sec_get()
764 elfedit_sec_getstr(elfedit_obj_state_t * obj_state,Word shndx,int allow_shflags) elfedit_sec_getstr() argument
[all...]
/titanic_51/usr/src/cmd/sgs/elfedit/modules/common/
H A Dsym.c115 SYM_OPT_F_XSHINDEX = 1, /* -e: Force shndx update to extended */
125 SYM_OPT_F_SHNDX = 32, /* -shndx ndx: section spec. by index */
160 Word shndx; member
166 Word shndx; member
246 Word shndx; in dump_symtab() local
264 if (symstate->versym.shndx != SHN_UNDEF) in dump_symtab()
268 if (symstate->xshndx.shndx != SHN_UNDEF) in dump_symtab()
280 shndx = sym->st_shndx; in dump_symtab()
281 if ((shndx == SHN_XINDEX) && (symstate->xshndx.sec != NULL)) in dump_symtab()
282 shndx in dump_symtab()
796 Word shndx, st_shndx, xshndx; cmd_body_set_st_shndx() local
[all...]
H A Dshdr.msg110 If -shndx is set, then sec is a section index, and is\n\
173 section header in the object is shown. If called with the shndx\n\
187 shown. If called with the shndx argument, the value of the\n\
206 is shown. If called with the shndx argument, the value of the\n\
223 is shown. If called with the shndx argument, the value of the\n\
235 is shown. If called with the shndx argument, the value of\n\
260 is shown. If called with the shndx argument, the value of the\n\
274 is shown. If called with the shndx argument, the value of the\n\
289 with the shndx argument, the name of the section at that\n\
310 is shown. If called with the shndx argumen
[all...]
H A Dsym.msg81 explicitly specified (-shnam, -shndx, or \
136 to use must be explicitly specified (-shnam, -shndx, or\n\
200 The symbol table to use can be changed using the -shnam, -shndx,\n\
214 The symbol table to use can be changed using the -shnam, -shndx,\n\
231 The symbol table to use can be changed using the -shnam, -shndx,\n\
244 The symbol table to use can be changed using the -shnam, -shndx,\n\
272 The symbol table to use can be changed using the -shnam, -shndx,\n\
288 The symbol table to use can be changed using the -shnam, -shndx,\n\
306 The symbol table to use can be changed using the -shnam, -shndx,\n\
321 The symbol table to use can be changed using the -shnam, -shndx,\
[all...]
H A Dstr.msg153 of the ELF header is used. The -shnam, -shndx, or -shndx options\n\
184 of the ELF header is used. The -shnam, -shndx, or -shndx options\n\
228 of the ELF header is used. The -shnam, -shndx, or -shndx options\n\
242 of the ELF header is used. The -shnam, -shndx, or -shndx options\n\
295 @ MSG_STR_MINUS_SHNDX "-shndx"
/titanic_51/usr/src/cmd/sgs/nm/common/
H A Dnm.c62 unsigned int shndx; member
762 is_bss_section(unsigned int shndx, Elf * elf_file, unsigned int shstrndx) in is_bss_section() argument
764 Elf_Scn *scn = elf_getscn(elf_file, shndx); in is_bss_section()
850 buf->shndx = symshndx[i]; in readsyms()
852 buf->shndx = sym.st_shndx; in readsyms()
951 if ((sym_data->shndx == SHN_UNDEF) && in is_sym_print()
1022 if ((sym_data->shndx == SHN_UNDEF) && (strlen(sym_data->name))) { in print_with_uflag()
1050 if ((sym_data->shndx == SHN_UNDEF) && (strlen(sym_data->name))) in print_brief_sym_type()
1064 is_bss_section((int)sym_data->shndx, elf_file, shstrndx)) { in print_brief_sym_type()
1254 if (sym_data->shndx in print_with_otherflags()
[all...]
/titanic_51/usr/src/cmd/sgs/libld/common/
H A Dsyms.c78 int symndx, Word shndx, Word symsecndx, const char *symsecname, in string() argument
105 sym, strs, symndx, shndx, symsecname, flags); in string()
328 Ofl_desc *ofl, Word ndx, Word shndx, sd_flag_t sdflags, avl_index_t *where) in ld_sym_enter() argument
373 sdp->sd_shndx = shndx; in ld_sym_enter()
403 sdp->sd_isc = ifl->ifl_isdesc[shndx]; in ld_sym_enter()
416 name, ifl->ifl_name, EC_XWORD(shndx)); in ld_sym_enter()
514 sdp->sd_shndx = shndx = SHN_UNDEF; in ld_sym_enter()
1855 Sym *sym, Word shndx) in issue_badaddr_msg() argument
1870 ifl->ifl_name, shndx, sdp->sd_isc->is_name, in issue_badaddr_msg()
2043 Word shndx; in ld_sym_process() local
[all …]
H A Dmachsym.sparc.c162 int symndx, Word shndx, const char *symsecname, sd_flag_t *flags) in ld_is_regsym_sparc() argument
185 if ((shndx != SHN_ABS) && (shndx != SHN_UNDEF)) { in ld_is_regsym_sparc()
199 (shndx != SHN_UNDEF)) { in ld_is_regsym_sparc()
H A Dlibs.c137 Word shndx; in process_member() local
139 if ((shndx = syms->st_shndx) == SHN_UNDEF) in process_member()
147 if ((shndx == SHN_ABS) || (shndx == SHN_COMMON) || in process_member()
H A Dlibld.sparc.msg63 \t(file %s shndx=ABS, file %s shndx=ABS);"
H A Dplace.c151 Word shndx; in os_attach_isp() local
154 shndx = (isp->is_shdr->sh_flags & SHF_ORDERED) ? in os_attach_isp()
157 if (shndx == SHN_BEFORE) { in os_attach_isp()
160 } else if (shndx == SHN_AFTER) { in os_attach_isp()
/titanic_51/usr/src/common/ctf/
H A Dctf_util.c175 ctf_sym_valid(uintptr_t strbase, int type, uint16_t shndx, uint64_t val, in ctf_sym_valid() argument
182 if (shndx == SHN_UNDEF || noff == 0) in ctf_sym_valid()
184 if (type == STT_OBJECT && shndx == SHN_ABS && val == 0) in ctf_sym_valid()
/titanic_51/usr/src/cmd/boot/symdef/
H A Dsymdef.c68 Elf32_Word shndx; in main() local
103 &sym, &shndx) != NULL) && in main()
/titanic_51/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c160 size_t shstr_size = 1, shndx; in rt_dldump() local
312 if (elf_getshdrstrndx(ielf, &shndx) == -1) { in rt_dldump()
317 if ((scn = elf_getscn(ielf, shndx)) == NULL) { in rt_dldump()
336 if (elf_getshdrnum(ielf, &shndx) == -1) { in rt_dldump()
342 num = shndx; in rt_dldump()
763 if (elf_getshdrnum(melf, &shndx) == -1) { in rt_dldump()
772 if ((mcache = calloc(shndx, sizeof (Cache))) == 0) { in rt_dldump()
/titanic_51/usr/src/cmd/sgs/include/
H A Delfedit.h928 elfedit32_obj_state_t *obj_state, Elf32_Word shndx);
930 elfedit64_obj_state_t *obj_state, Elf64_Word shndx);
943 elfedit32_obj_state_t *obj_state, Elf32_Word shndx, int);
945 elfedit64_obj_state_t *obj_state, Elf64_Word shndx, int);
984 Elf32_Word shndx);
986 Elf64_Word shndx);
/titanic_51/usr/src/grub/grub-0.97/docs/
H A Dmultiboot.h76 unsigned long shndx; member
H A Dkernel.c128 " addr = 0x%x, shndx = 0x%x\n", in cmain()
130 (unsigned) elf_sec->addr, (unsigned) elf_sec->shndx); in cmain()
/titanic_51/usr/src/grub/grub-0.97/stage2/
H A Dmb_info.h143 unsigned long shndx; member
/titanic_51/usr/src/boot/sys/boot/i386/libi386/
H A Dmultiboot.h142 multiboot_uint32_t shndx; member
/titanic_51/usr/src/uts/common/sys/
H A Dmultiboot.h76 uint32_t shndx; member
/titanic_51/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c527 * shndx - Index of .eh_frame or .eh_frame_hdr section to be displayed
540 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, in unwind_eh_frame() argument
551 Cache *_cache = &cache[shndx]; in unwind_eh_frame()
588 file, EC_WORD(shndx), _cache->c_name); in unwind_eh_frame()
615 eh_state->hdr_ndx = shndx; in unwind_eh_frame()
694 eh_state->frame_ndx = shndx; in unwind_eh_frame()
701 file, EC_WORD(shndx), _cache->c_name, in unwind_eh_frame()
1109 Word shndx; in output_symbol() local
1148 shndx = sym->st_shndx; in output_symbol()
1149 tshdr = state->cache[shndx] in output_symbol()
3471 Word symndx, shndx; move() local
[all...]
/titanic_51/usr/src/cmd/sgs/libconv/common/
H A Dsymbols.c371 conv_sym_shndx(uchar_t osabi, Half mach, Half shndx, Conv_fmt_flags_t fmt_flags, in conv_sym_shndx() argument
374 return (conv_map_ds(osabi, mach, shndx, in conv_sym_shndx()
/titanic_51/usr/src/cmd/sgs/dump/common/
H A Ddump.c532 unsigned int shndx; in print_symtab() local
566 shndx = symshndx[index]; in print_symtab()
569 shndx = sym.st_shndx; in print_symtab()
597 type, bind, (int)sym.st_other, (int)shndx); in print_symtab()
611 p_ehdr.e_machine, shndx, in print_symtab()
614 (void) printf("%d", EC_WORD(shndx)); in print_symtab()

12