Searched refs:shndx (Results 1 - 25 of 29) sorted by relevance

12

/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c93 int tfd, *shndx, ndx = 1, off = 0; local
121 * shndx is an array used to map the current section
124 shndx = calloc(shnum, sizeof (int));
137 free(shndx);
142 shndx[ndx] = -1;
154 free(shndx);
158 shndx[ndx] = ndx - off;
184 free(shndx);
190 free(shndx);
201 if (shndx[nd
[all...]
H A Ddispsyms.c122 "bind oth shndx name\n");
133 Elf32_Word shndx; local
144 &sym, &shndx) == NULL) {
190 &sym, &shndx) == NULL)) {
234 shndx = sym.st_shndx;
237 shndx = sym.st_shndx;
241 if (shndx == SHN_UNDEF) {
245 if (shndx == SHN_ABS)
247 else if (shndx == SHN_COMMON)
249 else if (shndx
[all...]
/illumos-gate/usr/src/grub/grub-0.97/docs/
H A Dmultiboot.h76 unsigned long shndx; member in struct:elf_section_header_table
H A Dmultiboot.h.texi76 unsigned long shndx;
H A Dkernel.c128 " addr = 0x%x, shndx = 0x%x\n",
130 (unsigned) elf_sec->addr, (unsigned) elf_sec->shndx);
H A Dkernel.c.texi128 " addr = 0x%x, shndx = 0x%x\n",
130 (unsigned) elf_sec->addr, (unsigned) elf_sec->shndx);
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c68 Elf32_Word shndx; local
103 &sym, &shndx) != NULL) &&
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Dutil_machelf.c259 elfedit_shndx_to_name(elfedit_obj_state_t *obj_state, Word shndx) argument
275 if ((shndx < obj_state->os_shnum) &&
276 ((shndx < SHN_LORESERVE) || (shndx > SHN_HIRESERVE)) &&
277 (shndx != SHN_UNDEF))
278 return (obj_state->os_secarr[shndx].sec_name);
286 obj_state->os_ehdr->e_machine, shndx,
292 * Locate the arbitrary section specified by shndx for this object.
298 elfedit_sec_get(elfedit_obj_state_t *obj_state, Word shndx) argument
302 if ((shndx
764 elfedit_sec_getstr(elfedit_obj_state_t *obj_state, Word shndx, int allow_shflags) argument
[all...]
/illumos-gate/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 in struct:__anon1522::__anon1525
166 Word shndx; member in struct:__anon1522::__anon1526
246 Word shndx; local
264 if (symstate->versym.shndx != SHN_UNDEF)
268 if (symstate->xshndx.shndx != SHN_UNDEF)
280 shndx = sym->st_shndx;
281 if ((shndx == SHN_XINDEX) && (symstate->xshndx.sec != NULL))
282 shndx
796 Word shndx, st_shndx, xshndx; local
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dmb_info.h143 unsigned long shndx; member in struct:multiboot_info::__anon2211::__anon2213
H A Dboot.c663 mbi.syms.e.shndx = pu.elf->e_shstrndx;
735 mbi.syms.e.shndx = 0;
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dmachsym.sparc.c162 int symndx, Word shndx, const char *symsecname, sd_flag_t *flags)
185 if ((shndx != SHN_ABS) && (shndx != SHN_UNDEF)) {
199 (shndx != SHN_UNDEF)) {
161 ld_is_regsym_sparc(Ofl_desc *ofl, Ifl_desc *ifl, Sym *sym, const char *strs, int symndx, Word shndx, const char *symsecname, sd_flag_t *flags) argument
H A Dsyms.c78 int symndx, Word shndx, Word symsecndx, const char *symsecname,
105 sym, strs, symndx, shndx, symsecname, flags);
328 Ofl_desc *ofl, Word ndx, Word shndx, sd_flag_t sdflags, avl_index_t *where)
373 sdp->sd_shndx = shndx;
403 sdp->sd_isc = ifl->ifl_isdesc[shndx];
416 name, ifl->ifl_name, EC_XWORD(shndx));
514 sdp->sd_shndx = shndx = SHN_UNDEF;
1855 Sym *sym, Word shndx)
1870 ifl->ifl_name, shndx, sdp->sd_isc->is_name,
2043 Word shndx; local
77 string(Ofl_desc *ofl, Ifl_desc *ifl, Sym *sym, const char *strs, size_t strsize, int symndx, Word shndx, Word symsecndx, const char *symsecname, const char *strsecname, sd_flag_t *flags) argument
327 ld_sym_enter(const char *name, Sym *osym, Word hash, Ifl_desc *ifl, Ofl_desc *ofl, Word ndx, Word shndx, sd_flag_t sdflags, avl_index_t *where) argument
1854 issue_badaddr_msg(Ifl_desc *ifl, Ofl_desc *ofl, Sym_desc *sdp, Sym *sym, Word shndx) argument
2358 Word shndx; local
[all...]
H A Dlibs.c137 Word shndx; local
139 if ((shndx = syms->st_shndx) == SHN_UNDEF)
147 if ((shndx == SHN_ABS) || (shndx == SHN_COMMON) ||
H A Dresolve.c44 SYM_DEFINED, /* Defined symbol (SHN_ABS or shndx != 0) */
319 Word shndx = nsym->st_shndx; local
338 if (shndx == SHN_UNDEF)
346 if (((shndx == SHN_UNDEF) || ((nsdflags & FLG_SY_SPECSEC) &&
347 (shndx == SHN_COMMON))) &&
H A Dplace.c151 Word shndx; local
154 shndx = (isp->is_shdr->sh_flags & SHF_ORDERED) ?
157 if (shndx == SHN_BEFORE) {
160 } else if (shndx == SHN_AFTER) {
/illumos-gate/usr/src/cmd/sgs/nm/common/
H A Dnm.c62 unsigned int shndx; member in struct:__anon1745
762 is_bss_section(unsigned int shndx, Elf * elf_file, unsigned int shstrndx) argument
764 Elf_Scn *scn = elf_getscn(elf_file, shndx);
850 buf->shndx = symshndx[i];
852 buf->shndx = sym.st_shndx;
951 if ((sym_data->shndx == SHN_UNDEF) &&
1022 if ((sym_data->shndx == SHN_UNDEF) && (strlen(sym_data->name))) {
1050 if ((sym_data->shndx == SHN_UNDEF) && (strlen(sym_data->name)))
1064 is_bss_section((int)sym_data->shndx, elf_file, shstrndx)) {
1254 if (sym_data->shndx
[all...]
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c160 size_t shstr_size = 1, shndx; local
312 if (elf_getshdrstrndx(ielf, &shndx) == -1) {
317 if ((scn = elf_getscn(ielf, shndx)) == NULL) {
336 if (elf_getshdrnum(ielf, &shndx) == -1) {
342 num = shndx;
763 if (elf_getshdrnum(melf, &shndx) == -1) {
772 if ((mcache = calloc(shndx, sizeof (Cache))) == 0) {
/illumos-gate/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);
/illumos-gate/usr/src/uts/common/sys/
H A Dmultiboot.h76 uint32_t shndx; member in struct:mb_elf_shtable
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dmultiboot.h142 multiboot_uint32_t shndx; member in struct:multiboot_elf_section_header_table
/illumos-gate/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, argument
374 return (conv_map_ds(osabi, mach, shndx,
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c533 * shndx - Index of .eh_frame or .eh_frame_hdr section to be displayed
546 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, argument
557 Cache *_cache = &cache[shndx];
594 file, EC_WORD(shndx), _cache->c_name);
621 eh_state->hdr_ndx = shndx;
700 eh_state->frame_ndx = shndx;
707 file, EC_WORD(shndx), _cache->c_name,
1116 Word shndx; local
1155 shndx = sym->st_shndx;
1156 tshdr = state->cache[shndx]
3491 Word symndx, shndx; local
[all...]
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c532 unsigned int shndx; local
566 shndx = symshndx[index];
569 shndx = sym.st_shndx;
597 type, bind, (int)sym.st_other, (int)shndx);
611 p_ehdr.e_machine, shndx,
614 (void) printf("%d", EC_WORD(shndx));
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_nm.c66 NM_FMT_SHNDX = 0x0040, /* -f shndx */
162 nm_sect2str(GElf_Half shndx) argument
166 switch (shndx) {
174 (void) mdb_iob_snprintf(buf, sizeof (buf), "%hu", shndx);
530 { NM_FMT_SHNDX, "shndx" },
899 " ndx, val, sz, type, bind, oth, shndx, "

Completed in 143 milliseconds

12