Lines Matching refs:shp
471 Elf32_Shdr *shp; in dump_elf32() local
535 shp = &elf_file.shdr[ESHDR_SHSTRTAB]; in dump_elf32()
536 shp->sh_name = 1; /* DTRACE_SHSTRTAB32[1] = ".shstrtab" */ in dump_elf32()
537 shp->sh_type = SHT_STRTAB; in dump_elf32()
538 shp->sh_offset = off; in dump_elf32()
539 shp->sh_size = sizeof (DTRACE_SHSTRTAB32); in dump_elf32()
540 shp->sh_addralign = sizeof (char); in dump_elf32()
541 off = roundup2(shp->sh_offset + shp->sh_size, 8); in dump_elf32()
543 shp = &elf_file.shdr[ESHDR_DOF]; in dump_elf32()
544 shp->sh_name = 11; /* DTRACE_SHSTRTAB32[11] = ".SUNW_dof" */ in dump_elf32()
545 shp->sh_flags = SHF_ALLOC; in dump_elf32()
546 shp->sh_type = SHT_SUNW_dof; in dump_elf32()
547 shp->sh_offset = off; in dump_elf32()
548 shp->sh_size = dof->dofh_filesz; in dump_elf32()
549 shp->sh_addralign = 8; in dump_elf32()
550 off = shp->sh_offset + shp->sh_size; in dump_elf32()
552 shp = &elf_file.shdr[ESHDR_STRTAB]; in dump_elf32()
553 shp->sh_name = 21; /* DTRACE_SHSTRTAB32[21] = ".strtab" */ in dump_elf32()
554 shp->sh_flags = SHF_ALLOC; in dump_elf32()
555 shp->sh_type = SHT_STRTAB; in dump_elf32()
556 shp->sh_offset = off; in dump_elf32()
557 shp->sh_size = de.de_strlen; in dump_elf32()
558 shp->sh_addralign = sizeof (char); in dump_elf32()
559 off = roundup2(shp->sh_offset + shp->sh_size, 4); in dump_elf32()
561 shp = &elf_file.shdr[ESHDR_SYMTAB]; in dump_elf32()
562 shp->sh_name = 29; /* DTRACE_SHSTRTAB32[29] = ".symtab" */ in dump_elf32()
563 shp->sh_flags = SHF_ALLOC; in dump_elf32()
564 shp->sh_type = SHT_SYMTAB; in dump_elf32()
565 shp->sh_entsize = sizeof (Elf32_Sym); in dump_elf32()
566 shp->sh_link = ESHDR_STRTAB; in dump_elf32()
567 shp->sh_offset = off; in dump_elf32()
568 shp->sh_info = de.de_global; in dump_elf32()
569 shp->sh_size = de.de_nsym * sizeof (Elf32_Sym); in dump_elf32()
570 shp->sh_addralign = 4; in dump_elf32()
571 off = roundup2(shp->sh_offset + shp->sh_size, 4); in dump_elf32()
583 shp = &elf_file.shdr[ESHDR_REL]; in dump_elf32()
584 shp->sh_name = 37; /* DTRACE_SHSTRTAB32[37] = ".rel.SUNW_dof" */ in dump_elf32()
585 shp->sh_flags = 0; in dump_elf32()
586 shp->sh_type = SHT_REL; in dump_elf32()
587 shp->sh_entsize = sizeof (de.de_rel[0]); in dump_elf32()
588 shp->sh_link = ESHDR_SYMTAB; in dump_elf32()
589 shp->sh_info = ESHDR_DOF; in dump_elf32()
590 shp->sh_offset = off; in dump_elf32()
591 shp->sh_size = de.de_nrel * sizeof (de.de_rel[0]); in dump_elf32()
592 shp->sh_addralign = 4; in dump_elf32()
625 Elf64_Shdr *shp; in dump_elf64() local
692 shp = &elf_file.shdr[ESHDR_SHSTRTAB]; in dump_elf64()
693 shp->sh_name = 1; /* DTRACE_SHSTRTAB64[1] = ".shstrtab" */ in dump_elf64()
694 shp->sh_type = SHT_STRTAB; in dump_elf64()
695 shp->sh_offset = off; in dump_elf64()
696 shp->sh_size = sizeof (DTRACE_SHSTRTAB64); in dump_elf64()
697 shp->sh_addralign = sizeof (char); in dump_elf64()
698 off = roundup2(shp->sh_offset + shp->sh_size, 8); in dump_elf64()
700 shp = &elf_file.shdr[ESHDR_DOF]; in dump_elf64()
701 shp->sh_name = 11; /* DTRACE_SHSTRTAB64[11] = ".SUNW_dof" */ in dump_elf64()
702 shp->sh_flags = SHF_ALLOC; in dump_elf64()
703 shp->sh_type = SHT_SUNW_dof; in dump_elf64()
704 shp->sh_offset = off; in dump_elf64()
705 shp->sh_size = dof->dofh_filesz; in dump_elf64()
706 shp->sh_addralign = 8; in dump_elf64()
707 off = shp->sh_offset + shp->sh_size; in dump_elf64()
709 shp = &elf_file.shdr[ESHDR_STRTAB]; in dump_elf64()
710 shp->sh_name = 21; /* DTRACE_SHSTRTAB64[21] = ".strtab" */ in dump_elf64()
711 shp->sh_flags = SHF_ALLOC; in dump_elf64()
712 shp->sh_type = SHT_STRTAB; in dump_elf64()
713 shp->sh_offset = off; in dump_elf64()
714 shp->sh_size = de.de_strlen; in dump_elf64()
715 shp->sh_addralign = sizeof (char); in dump_elf64()
716 off = roundup2(shp->sh_offset + shp->sh_size, 8); in dump_elf64()
718 shp = &elf_file.shdr[ESHDR_SYMTAB]; in dump_elf64()
719 shp->sh_name = 29; /* DTRACE_SHSTRTAB64[29] = ".symtab" */ in dump_elf64()
720 shp->sh_flags = SHF_ALLOC; in dump_elf64()
721 shp->sh_type = SHT_SYMTAB; in dump_elf64()
722 shp->sh_entsize = sizeof (Elf64_Sym); in dump_elf64()
723 shp->sh_link = ESHDR_STRTAB; in dump_elf64()
724 shp->sh_offset = off; in dump_elf64()
725 shp->sh_info = de.de_global; in dump_elf64()
726 shp->sh_size = de.de_nsym * sizeof (Elf64_Sym); in dump_elf64()
727 shp->sh_addralign = 8; in dump_elf64()
728 off = roundup2(shp->sh_offset + shp->sh_size, 8); in dump_elf64()
740 shp = &elf_file.shdr[ESHDR_REL]; in dump_elf64()
741 shp->sh_name = 37; /* DTRACE_SHSTRTAB64[37] = ".rel.SUNW_dof" */ in dump_elf64()
742 shp->sh_flags = 0; in dump_elf64()
743 shp->sh_type = SHT_RELA; in dump_elf64()
744 shp->sh_entsize = sizeof (de.de_rel[0]); in dump_elf64()
745 shp->sh_link = ESHDR_SYMTAB; in dump_elf64()
746 shp->sh_info = ESHDR_DOF; in dump_elf64()
747 shp->sh_offset = off; in dump_elf64()
748 shp->sh_size = de.de_nrel * sizeof (de.de_rel[0]); in dump_elf64()
749 shp->sh_addralign = 8; in dump_elf64()