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

/opensolaris-onvv-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)
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c120 Word shnum; /* # of sections in cache */ member in struct:__anon1577
306 stringtbl(Cache *cache, int symtab, Word ndx, Word shnum, const char *file, argument
315 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
354 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
372 * shnum - # of sections in cache
386 symlookup(const char *name, Cache *cache, Word shnum, Sym **sym, argument
416 if ((shdr->sh_link == 0) || (shdr->sh_link >= shnum)) {
454 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) argument
458 for (seccnt = 1; seccnt < shnum; seccnt++) {
786 unwind(Cache *cache, Word shnum, Wor argument
897 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
1240 cap_section(const char *file, Cache *cache, Word shnum, Cache *ccache, uchar_t osabi, Ehdr *ehdr, uint_t flags) argument
1615 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, Elf *elf, uint_t flags) argument
1698 interp(const char *file, Cache *cache, Word shnum, Word phnum, Elf *elf) argument
1775 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument
2210 versions(Cache *cache, Word shnum, const char *file, uint_t flags, VERSYM_STATE *versym) argument
2349 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument
2392 sunw_sort(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument
2529 reloc(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument
2796 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
2832 dynamic(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument
3347 move(Cache *cache, Word shnum, const char *file, uint_t flags) argument
3714 note(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument
3769 has_linux_abi_note(Cache *cache, Word shnum, const char *file) argument
3875 hash(Cache *cache, Word shnum, const char *file, uint_t flags) argument
4015 group(Cache *cache, Word shnum, const char *file, uint_t flags) argument
4114 got(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) argument
4381 shdr_cache(const char *file, Elf *elf, Ehdr *ehdr, size_t shstrndx, size_t shnum, Cache **cache_ret, Word flags) argument
4696 create_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache, size_t shstrndx, size_t *shnum, uint_t *flags) argument
4729 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
/opensolaris-onvv-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...]
/opensolaris-onvv-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));
/opensolaris-onvv-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) {
/opensolaris-onvv-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++) {
/opensolaris-onvv-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)) {
1415 "Size(shnum)",
1661 size_t shnum; local
1664 if (elf_getshdrnum(elf_file, &shnum) == -1) {
1677 if ((buffer = calloc(shnum, sizeof (SCNTAB))) == NULL) {
1683 num_scns = (int)shnum - 1;
/opensolaris-onvv-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;
/opensolaris-onvv-gate/usr/src/cmd/sgs/include/
H A Delfedit.h803 extern elfedit_atoui_t elfedit_atoshndx(const char *str, size_t shnum);

Completed in 137 milliseconds