/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | getphnum.c | 51 GElf_Shdr shdr0; local 62 gelf_getshdr(scn, &shdr0) == NULL) 65 if (shdr0.sh_info == 0) 68 *phnum = shdr0.sh_info;
|
H A D | getshnum.c | 55 GElf_Shdr shdr0; local 69 if (gelf_getshdr(scn, &shdr0) == 0) 71 *shnum = shdr0.sh_size;
|
H A D | getshstrndx.c | 49 GElf_Shdr shdr0; local 59 if (gelf_getshdr(scn, &shdr0) == 0) 61 *shstrndx = shdr0.sh_link;
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | elf.c | 33 Elf_ehdr(Lm_list *lml, Ehdr *ehdr, Shdr *shdr0) argument 103 if ((xshdr == 0) || (shdr0 == NULL)) 111 dbg_print(lml, MSG_ORIG(MSG_SHD0_ADDR), EC_ADDR(shdr0->sh_addr), 112 conv_sec_flags(osabi, mach, shdr0->sh_flags, 0, &sec_flags_buf)); 113 dbg_print(lml, MSG_ORIG(MSG_SHD0_SIZE), EC_XWORD(shdr0->sh_size), 114 conv_sec_type(osabi, mach, shdr0->sh_type, 0, &inv_buf1)); 115 dbg_print(lml, MSG_ORIG(MSG_SHD0_OFFSET), EC_OFF(shdr0->sh_offset), 116 EC_XWORD(shdr0->sh_entsize)); 117 dbg_print(lml, MSG_ORIG(MSG_SHD0_LINK), EC_WORD(shdr0->sh_link), 118 EC_WORD(shdr0 [all...] |
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | dcom.c | 271 GElf_Shdr shdr0; local 283 if (gelf_getshdr(_scn, &shdr0) == NULL) { 290 shdr0.sh_link = shndx[shstrndx]; 291 (void) gelf_update_shdr(_scn, &shdr0);
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | dldump.c | 642 Shdr *shdr0; local 656 shdr0 = elf_getshdr(_scn); 657 shdr0->sh_link = elf_ndxscn(scn);
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 609 Elf32_Shdr shdr0; local 619 if (IOP_READ(io, &shdr0, sizeof (shdr0)) != sizeof (shdr0)) { 626 gf->gf_shnum = shdr0.sh_size; 629 gf->gf_shstrndx = shdr0.sh_link; 632 gf->gf_phnum = shdr0.sh_info; 668 Elf64_Shdr shdr0; local 678 if (IOP_READ(io, &shdr0, sizeof (shdr0)) ! [all...] |
/illumos-gate/usr/src/cmd/sgs/mcs/common/ |
H A D | file.c | 1149 GElf_Shdr shdr0; local 1161 (void) gelf_getshdr(_scn, &shdr0); 1162 shdr0.sh_link = state->sec_table[shstrndx].secno; 1163 (void) gelf_update_shdr(_scn, &shdr0);
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab.c | 1037 Elf32_Shdr shdr0; local 1039 if (ehdr->e_shoff == 0 || ehdr->e_shentsize < sizeof (shdr0) || 1040 Pread(P, &shdr0, sizeof (shdr0), addr + ehdr->e_shoff) != 1041 sizeof (shdr0)) 1044 if (shdr0.sh_info != 0) 1045 *phnum = shdr0.sh_info; 1091 Elf64_Shdr shdr0; local 1093 if (ehdr->e_shoff == 0 || ehdr->e_shentsize < sizeof (shdr0) || 1094 Pread(P, &shdr0, sizeo [all...] |
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | ehdr.c | 997 Shdr *shdr0 = sec0->sec_shdr; local 1020 if (shdr0->sh_info == sh_info) { 1024 EC_WORD(shdr0->sh_info)); 1029 EC_WORD(shdr0->sh_info), sh_info); 1031 shdr0->sh_info = sh_info; 1069 Shdr *shdr0 = sec0->sec_shdr; local 1092 if (shdr0->sh_size == sh_size) { 1096 EC_WORD(shdr0->sh_size)); 1101 EC_WORD(shdr0->sh_size), sh_size); 1103 shdr0 1114 Shdr *shdr0 = sec0->sec_shdr; local [all...] |
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | files.c | 117 Shdr *shdr0; local 124 if ((shdr0 = elf_getshdr(scn)) == NULL) { 129 ifl->ifl_shnum = (Word)shdr0->sh_size; 131 ifl->ifl_shstrndx = shdr0->sh_link;
|
H A D | update.c | 4299 Shdr *shdr0; local 4306 if ((shdr0 = elf_getshdr(scn)) == NULL) { 4312 shdr0->sh_link = shscnndx;
|
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | dump.c | 1403 GElf_Shdr shdr0; local 1428 if (gelf_getshdr(scn, &shdr0) == 0) { 1434 (void) printf("[0]\t%u\t%llu\t", EC_WORD(shdr0.sh_type), 1435 EC_XWORD(shdr0.sh_flags)); 1438 field, EC_ADDR(shdr0.sh_addr), 1439 field, EC_OFF(shdr0.sh_offset), 1440 field, EC_XWORD(shdr0.sh_size), 1443 field, EC_WORD(shdr0.sh_name)); 1446 EC_WORD(shdr0.sh_link), 1447 EC_WORD(shdr0 [all...] |