Home
last modified time | relevance | path

Searched refs:shdr0 (Results 1 – 13 of 13) sorted by relevance

/titanic_50/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c33 Elf_ehdr(Lm_list *lml, Ehdr *ehdr, Shdr *shdr0) in Elf_ehdr() argument
103 if ((xshdr == 0) || (shdr0 == NULL)) in Elf_ehdr()
111 dbg_print(lml, MSG_ORIG(MSG_SHD0_ADDR), EC_ADDR(shdr0->sh_addr), in Elf_ehdr()
112 conv_sec_flags(osabi, mach, shdr0->sh_flags, 0, &sec_flags_buf)); in Elf_ehdr()
113 dbg_print(lml, MSG_ORIG(MSG_SHD0_SIZE), EC_XWORD(shdr0->sh_size), in Elf_ehdr()
114 conv_sec_type(osabi, mach, shdr0->sh_type, 0, &inv_buf1)); in Elf_ehdr()
115 dbg_print(lml, MSG_ORIG(MSG_SHD0_OFFSET), EC_OFF(shdr0->sh_offset), in Elf_ehdr()
116 EC_XWORD(shdr0->sh_entsize)); in Elf_ehdr()
117 dbg_print(lml, MSG_ORIG(MSG_SHD0_LINK), EC_WORD(shdr0->sh_link), in Elf_ehdr()
118 EC_WORD(shdr0->sh_info)); in Elf_ehdr()
[all …]
/titanic_50/usr/src/cmd/sgs/libelf/common/
H A Dgetphnum.c51 GElf_Shdr shdr0; in elf_getphdrnum() local
62 gelf_getshdr(scn, &shdr0) == NULL) in elf_getphdrnum()
65 if (shdr0.sh_info == 0) in elf_getphdrnum()
68 *phnum = shdr0.sh_info; in elf_getphdrnum()
H A Dgetshstrndx.c49 GElf_Shdr shdr0; in elf_getshdrstrndx() local
59 if (gelf_getshdr(scn, &shdr0) == 0) in elf_getshdrstrndx()
61 *shstrndx = shdr0.sh_link; in elf_getshdrstrndx()
H A Dgetshnum.c55 GElf_Shdr shdr0; in elf_getshdrnum() local
69 if (gelf_getshdr(scn, &shdr0) == 0) in elf_getshdrnum()
71 *shnum = shdr0.sh_size; in elf_getshdrnum()
/titanic_50/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c271 GElf_Shdr shdr0; in delete_comment() local
283 if (gelf_getshdr(_scn, &shdr0) == NULL) { in delete_comment()
290 shdr0.sh_link = shndx[shstrndx]; in delete_comment()
291 (void) gelf_update_shdr(_scn, &shdr0); in delete_comment()
/titanic_50/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c997 Shdr *shdr0 = sec0->sec_shdr; in cmd_body() local
1020 if (shdr0->sh_info == sh_info) { in cmd_body()
1024 EC_WORD(shdr0->sh_info)); in cmd_body()
1029 EC_WORD(shdr0->sh_info), sh_info); in cmd_body()
1031 shdr0->sh_info = sh_info; in cmd_body()
1069 Shdr *shdr0 = sec0->sec_shdr; in cmd_body() local
1092 if (shdr0->sh_size == sh_size) { in cmd_body()
1096 EC_WORD(shdr0->sh_size)); in cmd_body()
1101 EC_WORD(shdr0->sh_size), sh_size); in cmd_body()
1103 shdr0->sh_size = sh_size; in cmd_body()
[all …]
/titanic_50/usr/src/cmd/sgs/dump/common/
H A Ddump.c1402 GElf_Shdr shdr0; in dump_elf_header() local
1427 if (gelf_getshdr(scn, &shdr0) == 0) { in dump_elf_header()
1433 (void) printf("[0]\t%u\t%llu\t", EC_WORD(shdr0.sh_type), in dump_elf_header()
1434 EC_XWORD(shdr0.sh_flags)); in dump_elf_header()
1437 field, EC_ADDR(shdr0.sh_addr), in dump_elf_header()
1438 field, EC_OFF(shdr0.sh_offset), in dump_elf_header()
1439 field, EC_XWORD(shdr0.sh_size), in dump_elf_header()
1442 field, EC_WORD(shdr0.sh_name)); in dump_elf_header()
1445 EC_WORD(shdr0.sh_link), in dump_elf_header()
1446 EC_WORD(shdr0.sh_info), in dump_elf_header()
[all …]
/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c609 Elf32_Shdr shdr0; in gelf32_init() local
619 if (IOP_READ(io, &shdr0, sizeof (shdr0)) != sizeof (shdr0)) { in gelf32_init()
626 gf->gf_shnum = shdr0.sh_size; in gelf32_init()
629 gf->gf_shstrndx = shdr0.sh_link; in gelf32_init()
632 gf->gf_phnum = shdr0.sh_info; in gelf32_init()
668 Elf64_Shdr shdr0; in gelf64_init() local
678 if (IOP_READ(io, &shdr0, sizeof (shdr0)) != sizeof (shdr0)) { in gelf64_init()
685 gf->gf_shnum = shdr0.sh_size; in gelf64_init()
688 gf->gf_shstrndx = shdr0.sh_link; in gelf64_init()
691 gf->gf_phnum = shdr0.sh_info; in gelf64_init()
/titanic_50/usr/src/lib/libproc/common/
H A DPsymtab.c1037 Elf32_Shdr shdr0; in read_ehdr32() local
1039 if (ehdr->e_shoff == 0 || ehdr->e_shentsize < sizeof (shdr0) || in read_ehdr32()
1040 Pread(P, &shdr0, sizeof (shdr0), addr + ehdr->e_shoff) != in read_ehdr32()
1041 sizeof (shdr0)) in read_ehdr32()
1044 if (shdr0.sh_info != 0) in read_ehdr32()
1045 *phnum = shdr0.sh_info; in read_ehdr32()
1091 Elf64_Shdr shdr0; in read_ehdr64() local
1093 if (ehdr->e_shoff == 0 || ehdr->e_shentsize < sizeof (shdr0) || in read_ehdr64()
1094 Pread(P, &shdr0, sizeof (shdr0), addr + ehdr->e_shoff) != in read_ehdr64()
1095 sizeof (shdr0)) in read_ehdr64()
[all …]
/titanic_50/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c642 Shdr *shdr0; in rt_dldump() local
656 shdr0 = elf_getshdr(_scn); in rt_dldump()
657 shdr0->sh_link = elf_ndxscn(scn); in rt_dldump()
/titanic_50/usr/src/cmd/sgs/mcs/common/
H A Dfile.c1149 GElf_Shdr shdr0; in build_file() local
1161 (void) gelf_getshdr(_scn, &shdr0); in build_file()
1162 shdr0.sh_link = state->sec_table[shstrndx].secno; in build_file()
1163 (void) gelf_update_shdr(_scn, &shdr0); in build_file()
/titanic_50/usr/src/cmd/sgs/libld/common/
H A Dfiles.c117 Shdr *shdr0; in ifl_setup() local
124 if ((shdr0 = elf_getshdr(scn)) == NULL) { in ifl_setup()
129 ifl->ifl_shnum = (Word)shdr0->sh_size; in ifl_setup()
131 ifl->ifl_shstrndx = shdr0->sh_link; in ifl_setup()
H A Dupdate.c4292 Shdr *shdr0; in ld_update_outfile() local
4299 if ((shdr0 = elf_getshdr(scn)) == NULL) { in ld_update_outfile()
4305 shdr0->sh_link = shscnndx; in ld_update_outfile()