Lines Matching refs:shp

524 	Elf32_Shdr *shp;
576 shp = &elf_file.shdr[ESHDR_SHSTRTAB];
577 shp->sh_name = 1; /* DTRACE_SHSTRTAB32[1] = ".shstrtab" */
578 shp->sh_type = SHT_STRTAB;
579 shp->sh_offset = off;
580 shp->sh_size = sizeof (DTRACE_SHSTRTAB32);
581 shp->sh_addralign = sizeof (char);
582 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
584 shp = &elf_file.shdr[ESHDR_DOF];
585 shp->sh_name = 11; /* DTRACE_SHSTRTAB32[11] = ".SUNW_dof" */
586 shp->sh_flags = SHF_ALLOC;
587 shp->sh_type = SHT_SUNW_dof;
588 shp->sh_offset = off;
589 shp->sh_size = dof->dofh_filesz;
590 shp->sh_addralign = 8;
591 off = shp->sh_offset + shp->sh_size;
593 shp = &elf_file.shdr[ESHDR_STRTAB];
594 shp->sh_name = 21; /* DTRACE_SHSTRTAB32[21] = ".strtab" */
595 shp->sh_flags = SHF_ALLOC;
596 shp->sh_type = SHT_STRTAB;
597 shp->sh_offset = off;
598 shp->sh_size = de.de_strlen;
599 shp->sh_addralign = sizeof (char);
600 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4);
602 shp = &elf_file.shdr[ESHDR_SYMTAB];
603 shp->sh_name = 29; /* DTRACE_SHSTRTAB32[29] = ".symtab" */
604 shp->sh_flags = SHF_ALLOC;
605 shp->sh_type = SHT_SYMTAB;
606 shp->sh_entsize = sizeof (Elf32_Sym);
607 shp->sh_link = ESHDR_STRTAB;
608 shp->sh_offset = off;
609 shp->sh_info = de.de_global;
610 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym);
611 shp->sh_addralign = 4;
612 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4);
624 shp = &elf_file.shdr[ESHDR_REL];
625 shp->sh_name = 37; /* DTRACE_SHSTRTAB32[37] = ".rel.SUNW_dof" */
626 shp->sh_flags = SHF_ALLOC;
628 shp->sh_type = SHT_RELA;
630 shp->sh_type = SHT_REL;
632 shp->sh_entsize = sizeof (de.de_rel[0]);
633 shp->sh_link = ESHDR_SYMTAB;
634 shp->sh_info = ESHDR_DOF;
635 shp->sh_offset = off;
636 shp->sh_size = de.de_nrel * sizeof (de.de_rel[0]);
637 shp->sh_addralign = 4;
670 Elf64_Shdr *shp;
722 shp = &elf_file.shdr[ESHDR_SHSTRTAB];
723 shp->sh_name = 1; /* DTRACE_SHSTRTAB64[1] = ".shstrtab" */
724 shp->sh_type = SHT_STRTAB;
725 shp->sh_offset = off;
726 shp->sh_size = sizeof (DTRACE_SHSTRTAB64);
727 shp->sh_addralign = sizeof (char);
728 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
730 shp = &elf_file.shdr[ESHDR_DOF];
731 shp->sh_name = 11; /* DTRACE_SHSTRTAB64[11] = ".SUNW_dof" */
732 shp->sh_flags = SHF_ALLOC;
733 shp->sh_type = SHT_SUNW_dof;
734 shp->sh_offset = off;
735 shp->sh_size = dof->dofh_filesz;
736 shp->sh_addralign = 8;
737 off = shp->sh_offset + shp->sh_size;
739 shp = &elf_file.shdr[ESHDR_STRTAB];
740 shp->sh_name = 21; /* DTRACE_SHSTRTAB64[21] = ".strtab" */
741 shp->sh_flags = SHF_ALLOC;
742 shp->sh_type = SHT_STRTAB;
743 shp->sh_offset = off;
744 shp->sh_size = de.de_strlen;
745 shp->sh_addralign = sizeof (char);
746 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
748 shp = &elf_file.shdr[ESHDR_SYMTAB];
749 shp->sh_name = 29; /* DTRACE_SHSTRTAB64[29] = ".symtab" */
750 shp->sh_flags = SHF_ALLOC;
751 shp->sh_type = SHT_SYMTAB;
752 shp->sh_entsize = sizeof (Elf64_Sym);
753 shp->sh_link = ESHDR_STRTAB;
754 shp->sh_offset = off;
755 shp->sh_info = de.de_global;
756 shp->sh_size = de.de_nsym * sizeof (Elf64_Sym);
757 shp->sh_addralign = 8;
758 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
770 shp = &elf_file.shdr[ESHDR_REL];
771 shp->sh_name = 37; /* DTRACE_SHSTRTAB64[37] = ".rel.SUNW_dof" */
772 shp->sh_flags = SHF_ALLOC;
773 shp->sh_type = SHT_RELA;
774 shp->sh_entsize = sizeof (de.de_rel[0]);
775 shp->sh_link = ESHDR_SYMTAB;
776 shp->sh_info = ESHDR_DOF;
777 shp->sh_offset = off;
778 shp->sh_size = de.de_nrel * sizeof (de.de_rel[0]);
779 shp->sh_addralign = 8;