Searched refs:shnum (Results 1 - 17 of 17) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshnum.c51 elf_getshdrnum(Elf *elf, size_t *shnum) argument
60 *shnum = ehdr.e_shnum;
64 *shnum = 0;
71 *shnum = shdr0.sh_size;
76 elf_getshnum(Elf *elf, size_t *shnum) argument
78 return (elf_getshdrnum(elf, shnum) == 0);
H A Dchecksum.c108 size_t shnum; local
132 for (shnum = 1; shnum < ehdr->e_shnum; shnum++) {
133 if ((scn = elf_getscn(elf, shnum)) == 0)
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c124 Word shnum; /* # of sections in cache */ member in struct:__anon140
310 stringtbl(Cache *cache, int symtab, Word ndx, Word shnum, const char *file, argument
324 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
364 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
382 * shnum - # of sections in cache
396 symlookup(const char *name, Cache *cache, Word shnum, Sym **sym, argument
426 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
464 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) argument
468 for (seccnt = 1; seccnt < shnum; seccnt++) {
534 * shnum
546 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, gnu_eh_state_t *eh_state, uchar_t osabi, const char *file, uint_t flags) argument
865 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, const char *file, Elf *elf, uint_t flags) argument
976 init_symtbl_state(SYMTBL_STATE *state, Cache *cache, Word shnum, Word secndx, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument
1320 cap_section(const char *file, Cache *cache, Word shnum, Cache *ccache, uchar_t osabi, Ehdr *ehdr, uint_t flags) argument
1695 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, Elf *elf, uint_t flags) argument
1778 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf) argument
1859 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument
2301 versions(Cache *cache, Word shnum, const char *file, uint_t flags, VERSYM_STATE *versym) argument
2441 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument
2484 sunw_sort(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument
2621 reloc(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument
2888 dyn_symtest(Dyn *dyn, const char *symname, Cache *symtab_cache, Cache *dynsym_cache, Cache *ldynsym_cache, Cache *target_cache, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument
2924 dynamic(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument
3439 move(Cache *cache, Word shnum, const char *file, uint_t flags) argument
3816 note(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument
3871 has_linux_abi_note(Cache *cache, Word shnum, const char *file) argument
3979 hash(Cache *cache, Word shnum, const char *file, uint_t flags) argument
4171 group(Cache *cache, Word shnum, const char *file, uint_t flags) argument
4270 got(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument
4544 shdr_cache(const char *file, Elf *elf, Ehdr *ehdr, size_t shstrndx, size_t shnum, Cache **cache_ret, Word flags) argument
4860 create_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache, size_t shstrndx, size_t *shnum, uint_t *flags) argument
4893 size_t ndx, shstrndx, shnum, phnum; local
[all...]
H A Dfake_shdr.c1054 * cache, shnum - Addresses of variables to receive resulting
1058 * On success, *cache and *shnum are set, and True (1) is returned.
1068 Cache **cache, size_t *shnum)
1495 *shnum = num_sinfo + num_list_sinfo + 1; /* Extra for 1st NULL sec. */
1496 if ((*cache = _cache = malloc((*shnum) * sizeof (Cache))) == NULL) {
1544 fake_shdr_cache_free(Cache *cache, size_t shnum) argument
1548 for (_cache = cache; shnum--; _cache++) {
1067 fake_shdr_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache, size_t *shnum) argument
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c196 size_t shstrndx, shnum; local
278 shnum = hdr.e64.e_shnum;
282 if ((shstrndx == SHN_XINDEX) || (shnum == 0)) {
291 shnum = x32.sh_size;
301 shnum = x64.sh_size;
306 if (shstrndx >= shnum)
309 nbytes = sizeof (GElf_Shdr) * shnum;
321 nbytes = sizeof (Elf32_Shdr) * shnum;
329 for (i = 0; i < shnum; i++)
361 for (i = 0; i < shnum;
[all...]
/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c93 size_t ndx = 0, shnum = 0; local
134 if (elf_getshdrnum(elf, &shnum) == -1)
137 if (shnum == 0)
140 numsect = shnum;
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dfile.c60 static void initialize(int shnum, Cmd_Info *, file_state_t *);
249 size_t shnum; local
260 if (elf_getshdrnum(elf, &shnum) == -1) {
275 initialize(shnum, cmd_info, &state);
326 size_t shstrndx, shnum; local
330 if (elf_getshdrnum(elf, &shnum) == -1) {
517 if ((tmp_shdr.sh_link < shnum) &&
585 for (i = 1; i < shnum; i++) {
636 for (i = 1; i < shnum; i++) {
692 size_t shnum, shstrnd local
1513 initialize(int shnum, Cmd_Info *cmd_info, file_state_t *state) argument
[all...]
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c92 size_t shstrndx, shnum, phnum; local
102 if (elf_getshdrnum(elf, &shnum) == -1) {
124 shndx = calloc(shnum, sizeof (int));
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dorder.c93 * If sh_info is in the range (1 <= value < shnum), then this input section
172 Word shnum = ifl->ifl_shnum; local
189 if ((isp2_ndx == 0) || (isp2_ndx >= shnum)) {
233 if (++iter >= shnum) {
/illumos-gate/usr/src/cmd/dis/
H A Ddis_target.c449 size_t shnum = 0; local
505 if (elf_getshdrnum(elf, &shnum) == -1) {
513 shnum);
514 current->dt_shncount = shnum;
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Dutil.c402 * shnum - Number of sections in the ELF file
412 elfedit_atoshndx(const char *str, size_t shnum) argument
417 if ((ndx >= shnum) && ((ndx < SHN_LORESERVE) || (ndx > SHN_HIRESERVE)))
419 EC_WORD(ndx), EC_WORD(shnum-1));
H A Dutil_machelf.c123 Word shnum = obj_state->os_shnum; local
125 for (ndx = 0; ndx < shnum; ndx++, sec++) {
159 Word shnum = obj_state->os_shnum; local
161 for (ndx = 0; ndx < shnum; ndx++, sec++) {
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c772 size_t shnum; local
791 if (elf_getshdrnum(elf_file, &shnum) == -1) {
800 (p_scns->p_shdr.sh_link >= (GElf_Word)shnum)) {
1416 "Size(shnum)",
1662 size_t shnum; local
1665 if (elf_getshdrnum(elf_file, &shnum) == -1) {
1678 if ((buffer = calloc(shnum, sizeof (SCNTAB))) == NULL) {
1684 num_scns = (int)shnum - 1;
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c208 size_t shnum; local
226 if (elf_getshdrnum(elf, &shnum) == -1)
230 ? (ehdr.e_shoff + (shnum * ehdr.e_shentsize)) : 0;
/illumos-gate/usr/src/cmd/sgs/pvs/common/
H A Dpvs.c1093 size_t shnum = 0; local
1158 if (elf_getshdrnum(elf, &shnum) == -1) {
1164 if ((cache = calloc(shnum, sizeof (Cache))) == NULL) {
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c1065 Word shnum = (Word) elfedit_atoui(argstate.argv[0], local
1073 if (shnum >= SHN_LORESERVE) {
1075 sh_size = shnum;
1077 e_shnum = shnum;
/illumos-gate/usr/src/cmd/sgs/include/
H A Delfedit.h803 extern elfedit_atoui_t elfedit_atoshndx(const char *str, size_t shnum);

Completed in 2600 milliseconds