/illumos-gate/usr/src/cmd/mdb/tools/common/ |
H A D | findscn.c | 40 GElf_Shdr shdr; local 48 if (gelf_getshdr(scn, &shdr) == NULL || 50 (size_t)shdr.sh_name)) == NULL)
|
/illumos-gate/usr/src/cmd/mdb/tools/findfp/common/ |
H A D | findsym.c | 41 GElf_Shdr shdr; local 49 gelf_getshdr(scn, &shdr) == NULL || 53 nent = shdr.sh_size / shdr.sh_entsize; 68 if ((*symnamep = elf_strptr(elf, shdr.sh_link,
|
/illumos-gate/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 77 Elf64_Shdr *shdr; local 180 shdr = (Elf64_Shdr *)(sechdrs + eh->e_shentsize * i); 183 if (shdr->sh_type == SHT_NOBITS) { 187 (ulong_t)shdr->sh_size, 189 next_addr + shdr->sh_size); 191 shdr->sh_size);
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | checksum.c | 105 Elf_Shdr * shdr; local 135 if ((shdr = getshdr(scn)) == 0) 139 if (!(shdr->sh_flags & SHF_ALLOC)) 152 if ((shdr->sh_type == SHT_DYNSYM) || 153 (shdr->sh_type == SHT_DYNAMIC) || 154 (shdr->sh_type == SHT_SUNW_dof))
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | acom.c | 49 GElf_Shdr shdr; local 65 if (gelf_getshdr(scn, &shdr) == NULL) { 71 shdr.sh_name)) == 0) 113 if (gelf_getshdr(scn, &shdr) == NULL) { 118 shdr.sh_name = ndx; 119 shdr.sh_type = SHT_PROGBITS; 120 shdr.sh_flags = 0; 121 shdr.sh_addr = 0; 122 shdr.sh_link = 0; 123 shdr [all...] |
H A D | pcom.c | 50 GElf_Shdr shdr; local 69 if (gelf_getshdr(scn, &shdr) == NULL) { 75 shdr.sh_name)) == 0) {
|
H A D | dcom.c | 127 GElf_Shdr shdr; local 134 if (gelf_getshdr(scn, &shdr) == NULL) { 141 shdr.sh_name)) == 0) { 150 if (shdr.sh_addr != 0) { 199 GElf_Shdr shdr, tshdr; local 210 if (gelf_getshdr(scn, &shdr) == NULL) { 228 tshdr = shdr; 229 tshdr.sh_link = shndx[shdr.sh_link]; 241 if (shdr.sh_type == SHT_REL)
|
H A D | tpcom.c | 70 GElf_Shdr shdr; local 86 if (gelf_getshdr(scn, &shdr) == NULL) { 93 shdr.sh_name)) == 0) {
|
H A D | dispsyms.c | 73 GElf_Shdr shdr; local 94 if (gelf_getshdr(scn, &shdr) == NULL) { 100 if ((shdr.sh_type != SHT_SYMTAB) && 101 (shdr.sh_type != SHT_DYNSYM) && 102 (shdr.sh_type != SHT_SUNW_LDYNSYM)) 120 elf_strptr(elf, shstrndx, shdr.sh_name)); 130 symcnt = shdr.sh_size / shdr.sh_entsize; 174 * and it's shdr.sh_link points to the 269 elf_strptr(elf, shdr [all...] |
/illumos-gate/usr/src/cmd/boot/symdef/ |
H A D | symdef.c | 66 GElf_Shdr shdr; local 94 if ((gelf_getshdr(scn, &shdr) == NULL) || 95 ((shdr.sh_type != SHT_SYMTAB) && 96 (shdr.sh_type != SHT_DYNSYM)) || 99 symcnt = shdr.sh_size / shdr.sh_entsize; 104 (strcmp(argv[2], elf_strptr(elfp, shdr.sh_link,
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | shdr.c | 33 Elf_shdr(Lm_list *lml, uchar_t osabi, Half mach, Shdr *shdr) argument 38 dbg_print(lml, MSG_ORIG(MSG_SHD_ADDR), EC_ADDR(shdr->sh_addr), 39 conv_sec_flags(osabi, mach, shdr->sh_flags, 0, &sec_flags_buf)); 40 dbg_print(lml, MSG_ORIG(MSG_SHD_SIZE), EC_XWORD(shdr->sh_size), 41 conv_sec_type(osabi, mach, shdr->sh_type, 0, &inv_buf1)); 42 if (shdr->sh_entsize == 0) { 44 EC_OFF(shdr->sh_offset), EC_XWORD(shdr->sh_entsize)); 46 Xword nelts = shdr->sh_size / shdr [all...] |
H A D | segments.c | 148 Shdr *shdr; local 160 shdr = osp->os_shdr; 163 EC_ADDR(shdr->sh_addr), conv_elfdata_type(data->d_type, &inv_buf), 183 addr = (Addr)(shdr->sh_addr + data->d_off);
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | syms.c | 48 Shdr *shdr; local 54 shdr = _cache->c_shdr; 56 symn = shdr->sh_size / shdr->sh_entsize; 58 strs = (char *)cache[shdr->sh_link].c_data->d_buf; 87 Shdr *shdr; local 90 shdr = _cache->c_shdr; 92 num = (Word)(shdr->sh_size / shdr->sh_entsize);
|
/illumos-gate/usr/src/cmd/mdb/tools/setdynflag/common/ |
H A D | setdynflag.c | 90 GElf_Shdr shdr; local 108 if (gelf_getshdr(scn, &shdr) == NULL) 114 nent = shdr.sh_size / shdr.sh_entsize;
|
/illumos-gate/usr/src/cmd/sgs/size/common/ |
H A D | process.c | 91 GElf_Shdr shdr; local 145 if (gelf_getshdr(scn, &shdr) == 0) { 152 } else if ((!(shdr.sh_flags & SHF_ALLOC)) && 155 } else if ((!(shdr.sh_flags & SHF_ALLOC)) && !(nflag)) { 157 } else if ((shdr.sh_flags & SHF_ALLOC) && 158 (!(shdr.sh_flags & SHF_WRITE)) && 159 (!(shdr.sh_type == SHT_NOBITS)) && 161 first += shdr.sh_size; 162 } else if ((shdr.sh_flags & SHF_ALLOC) && 163 (shdr [all...] |
/illumos-gate/usr/src/cmd/mdb/tools/findfp/sparc/ |
H A D | findfp.c | 84 GElf_Shdr shdr; local 126 gelf_getshdr(scn, &shdr) == NULL || 132 for (i = 0; i < shdr.sh_size / 4; i++) {
|
/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfedit_machelf.c | 180 Shdr *shdr; local 182 LIBELF(shdr = elf_getshdr(scn), MSG_ORIG(MSG_ELF_GETSHDR)); 184 switch (shdr->sh_type) {
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | elfwrap.c | 290 Shdr *shdr; local 297 if ((shdr = elf_getshdr(scn)) == NULL) { 306 shdr->sh_type = outsec->os_type; 307 shdr->sh_flags = outsec->os_flags; 315 switch (shdr->sh_type) { 389 Shdr *shdr; local 396 if ((outsec->os_shdr = shdr = elf_getshdr(scn)) == NULL) { 407 if (shdr->sh_type == SHT_PROGBITS) 414 if (shdr->sh_type == SHT_SYMTAB) { 417 } else if (shdr [all...] |
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | util.c | 68 GElf_Shdr shdr; local 76 if (gelf_getshdr(scn, &shdr) == NULL) { 83 (size_t)shdr.sh_name)) == NULL) {
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | mod.c | 117 GElf_Shdr shdr; local 140 if (gelf_getshdr(scn, &shdr) == NULL) { 144 if (shdr.sh_type != SHT_PROGBITS) 147 ehdr.e_shstrndx, (size_t)shdr.sh_name);
|
/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | traverse.c | 56 GElf_Shdr *shdr, shdr_obj; local 108 if ((shdr = gelf_getshdr(scn, &shdr_obj)) == NULL) { 123 strs, scn, shdr, data, addr, search_info_p); 278 GElf_Shdr * shdr, 291 if (shdr->sh_type != SHT_DYNSYM) 297 nsyms = shdr->sh_size / shdr->sh_entsize; 298 strs = elf_strptr(elf, shdr->sh_link, 0); 275 _tnfctl_traverse_dynsym(Elf * elf, char *elfstrs, Elf_Scn * scn, GElf_Shdr * shdr, Elf_Data * data, uintptr_t baseaddr, tnfctl_elf_search_t * search_info_p) argument
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | boot.c | 657 Elf32_Shdr *shdr = NULL; local 681 shdr = (Elf32_Shdr *) mbi.syms.e.addr; 690 if (shdr[i].sh_addr != 0) 694 if (shdr[i].sh_size == 0) 698 cur_addr = ((cur_addr + shdr[i].sh_addralign) & 699 - (int) shdr[i].sh_addralign); 701 grub_seek (shdr[i].sh_offset); 703 sec_size = shdr[i].sh_size; 719 shdr[i].sh_addr = cur_addr;
|
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 171 dump_shdr(const Shdr *shdr, int i) argument 211 shdr->sh_addr, shdr->sh_flags, sh_flag_masks); 214 shdr->sh_size, shdr->sh_type, sh_type_masks); 217 shdr->sh_offset, shdr->sh_entsize); 220 shdr->sh_link, shdr->sh_info); 222 mdb_printf(" sh_addralign: 0x%-16lx\n", shdr [all...] |
/illumos-gate/usr/src/cmd/file/ |
H A D | elf_read.c | 207 * from shdr[0]. 425 Elf_Shdr *shdr = &EI_Shdr; local 439 if ((strtab = malloc(shdr->sh_size)) == NULL) 442 if (pread64(EI->elffd, strtab, shdr->sh_size, shdr->sh_offset) 443 != shdr->sh_size) 446 strtab_sz = shdr->sh_size; 455 if (shdr->sh_type == SHT_NULL) { 460 cap_off = shdr->sh_offset; 461 if (shdr [all...] |
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | readelf.c | 404 GElf_Shdr shdr; local 445 (void) gelf_getshdr(scn, &shdr); 447 if (!(shdr.sh_flags & SHF_EXECINSTR)) 478 GElf_Shdr shdr; local 480 if (gelf_getshdr(scn, &shdr) == NULL) 483 switch (shdr.sh_type) { 485 nsyms_pri = shdr.sh_size / shdr.sh_entsize; 486 strndx = shdr.sh_link; 497 nsyms_pri = shdr [all...] |