Lines Matching defs:shp

504 	Elf32_Shdr *shp;
558 shp = &elf_file.shdr[ESHDR_SHSTRTAB];
559 shp->sh_name = 1; /* DTRACE_SHSTRTAB32[1] = ".shstrtab" */
560 shp->sh_type = SHT_STRTAB;
561 shp->sh_offset = off;
562 shp->sh_size = sizeof (DTRACE_SHSTRTAB32);
563 shp->sh_addralign = sizeof (char);
564 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
566 shp = &elf_file.shdr[ESHDR_DOF];
567 shp->sh_name = 11; /* DTRACE_SHSTRTAB32[11] = ".SUNW_dof" */
568 shp->sh_flags = SHF_ALLOC;
569 shp->sh_type = SHT_SUNW_dof;
570 shp->sh_offset = off;
571 shp->sh_size = dof->dofh_filesz;
572 shp->sh_addralign = 8;
573 off = shp->sh_offset + shp->sh_size;
575 shp = &elf_file.shdr[ESHDR_STRTAB];
576 shp->sh_name = 21; /* DTRACE_SHSTRTAB32[21] = ".strtab" */
577 shp->sh_flags = SHF_ALLOC;
578 shp->sh_type = SHT_STRTAB;
579 shp->sh_offset = off;
580 shp->sh_size = de.de_strlen;
581 shp->sh_addralign = sizeof (char);
582 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4);
584 shp = &elf_file.shdr[ESHDR_SYMTAB];
585 shp->sh_name = 29; /* DTRACE_SHSTRTAB32[29] = ".symtab" */
586 shp->sh_flags = SHF_ALLOC;
587 shp->sh_type = SHT_SYMTAB;
588 shp->sh_entsize = sizeof (Elf32_Sym);
589 shp->sh_link = ESHDR_STRTAB;
590 shp->sh_offset = off;
591 shp->sh_info = de.de_global;
592 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym);
593 shp->sh_addralign = 4;
594 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 4);
606 shp = &elf_file.shdr[ESHDR_REL];
607 shp->sh_name = 37; /* DTRACE_SHSTRTAB32[37] = ".rel.SUNW_dof" */
608 shp->sh_flags = SHF_ALLOC;
610 shp->sh_type = SHT_RELA;
612 shp->sh_type = SHT_REL;
614 shp->sh_entsize = sizeof (de.de_rel[0]);
615 shp->sh_link = ESHDR_SYMTAB;
616 shp->sh_info = ESHDR_DOF;
617 shp->sh_offset = off;
618 shp->sh_size = de.de_nrel * sizeof (de.de_rel[0]);
619 shp->sh_addralign = 4;
652 Elf64_Shdr *shp;
706 shp = &elf_file.shdr[ESHDR_SHSTRTAB];
707 shp->sh_name = 1; /* DTRACE_SHSTRTAB64[1] = ".shstrtab" */
708 shp->sh_type = SHT_STRTAB;
709 shp->sh_offset = off;
710 shp->sh_size = sizeof (DTRACE_SHSTRTAB64);
711 shp->sh_addralign = sizeof (char);
712 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
714 shp = &elf_file.shdr[ESHDR_DOF];
715 shp->sh_name = 11; /* DTRACE_SHSTRTAB64[11] = ".SUNW_dof" */
716 shp->sh_flags = SHF_ALLOC;
717 shp->sh_type = SHT_SUNW_dof;
718 shp->sh_offset = off;
719 shp->sh_size = dof->dofh_filesz;
720 shp->sh_addralign = 8;
721 off = shp->sh_offset + shp->sh_size;
723 shp = &elf_file.shdr[ESHDR_STRTAB];
724 shp->sh_name = 21; /* DTRACE_SHSTRTAB64[21] = ".strtab" */
725 shp->sh_flags = SHF_ALLOC;
726 shp->sh_type = SHT_STRTAB;
727 shp->sh_offset = off;
728 shp->sh_size = de.de_strlen;
729 shp->sh_addralign = sizeof (char);
730 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
732 shp = &elf_file.shdr[ESHDR_SYMTAB];
733 shp->sh_name = 29; /* DTRACE_SHSTRTAB64[29] = ".symtab" */
734 shp->sh_flags = SHF_ALLOC;
735 shp->sh_type = SHT_SYMTAB;
736 shp->sh_entsize = sizeof (Elf64_Sym);
737 shp->sh_link = ESHDR_STRTAB;
738 shp->sh_offset = off;
739 shp->sh_info = de.de_global;
740 shp->sh_size = de.de_nsym * sizeof (Elf64_Sym);
741 shp->sh_addralign = 8;
742 off = P2ROUNDUP(shp->sh_offset + shp->sh_size, 8);
754 shp = &elf_file.shdr[ESHDR_REL];
755 shp->sh_name = 37; /* DTRACE_SHSTRTAB64[37] = ".rel.SUNW_dof" */
756 shp->sh_flags = SHF_ALLOC;
757 shp->sh_type = SHT_RELA;
758 shp->sh_entsize = sizeof (de.de_rel[0]);
759 shp->sh_link = ESHDR_SYMTAB;
760 shp->sh_info = ESHDR_DOF;
761 shp->sh_offset = off;
762 shp->sh_size = de.de_nrel * sizeof (de.de_rel[0]);
763 shp->sh_addralign = 8;