Searched defs:shdr (Results 1 - 25 of 73) sorted by relevance

123

/illumos-gate/usr/src/cmd/mdb/tools/common/
H A Dfindscn.c40 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 Dfindsym.c41 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 Ddboot_elfload.c77 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 Dchecksum.c105 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 Dacom.c49 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 Dpcom.c50 GElf_Shdr shdr; local
69 if (gelf_getshdr(scn, &shdr) == NULL) {
75 shdr.sh_name)) == 0) {
H A Ddcom.c127 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 Dtpcom.c70 GElf_Shdr shdr; local
86 if (gelf_getshdr(scn, &shdr) == NULL) {
93 shdr.sh_name)) == 0) {
H A Ddispsyms.c73 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 Dsymdef.c66 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 Dshdr.c33 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 Dsegments.c148 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 Dsyms.c48 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 Dsetdynflag.c90 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 Dprocess.c91 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 Dfindfp.c84 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 Delfedit_machelf.c180 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 Delfwrap.c290 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 Dutil.c68 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 Dmod.c117 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 Dtraverse.c56 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 Dboot.c657 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 Dkrtld.c171 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 Delf_read.c207 * 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 Dreadelf.c404 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...]

Completed in 77 milliseconds

123