Lines Matching refs:sh
271 #define EM_SH 42 /* Hitachi SH */
19222 Elf32_Shdr shdr, *sh;
19812 sh = &shdr;
19813 memset(sh, 0, sizeof(Elf32_Shdr));
19816 sh->sh_name = s->sh_name;
19817 sh->sh_type = s->sh_type;
19818 sh->sh_flags = s->sh_flags;
19819 sh->sh_entsize = s->sh_entsize;
19820 sh->sh_info = s->sh_info;
19822 sh->sh_link = s->link->sh_num;
19823 sh->sh_addralign = s->sh_addralign;
19824 sh->sh_addr = s->sh_addr;
19825 sh->sh_offset = s->sh_offset;
19826 sh->sh_size = s->sh_size;
19828 dummy_size_t = fwrite(sh, 1, sizeof(Elf32_Shdr), f);
19867 Elf32_Shdr *shdr, *sh;
19900 sh = &shdr[ehdr.e_shstrndx];
19901 strsec = load_data(fd, file_offset + sh->sh_offset, sh->sh_size);
19909 sh = &shdr[i];
19910 if (sh->sh_type == SHT_SYMTAB) {
19917 nb_syms = sh->sh_size / sizeof(Elf32_Sym);
19918 symtab = load_data(fd, file_offset + sh->sh_offset, sh->sh_size);
19922 sh = &shdr[sh->sh_link];
19923 strtab = load_data(fd, file_offset + sh->sh_offset, sh->sh_size);
19933 sh = &shdr[i];
19934 sh_name = strsec + sh->sh_name;
19936 if (sh->sh_type != SHT_PROGBITS &&
19937 sh->sh_type != SHT_REL &&
19938 sh->sh_type != SHT_NOBITS)
19940 if (sh->sh_addralign < 1)
19941 sh->sh_addralign = 1;
19960 s = new_section(s1, sh_name, sh->sh_type, sh->sh_flags);
19963 s->sh_addralign = sh->sh_addralign;
19964 s->sh_entsize = sh->sh_entsize;
19967 if (sh->sh_type != s->sh_type) {
19974 size = sh->sh_addralign - 1;
19976 if (sh->sh_addralign > s->sh_addralign)
19977 s->sh_addralign = sh->sh_addralign;
19982 size = sh->sh_size;
19983 if (sh->sh_type != SHT_NOBITS) {
19985 lseek(fd, file_offset + sh->sh_offset, SEEK_SET);
20001 sh = &shdr[i];
20002 if (sh->sh_link > 0)
20003 s->link = sm_table[sh->sh_link].s;
20004 if (sh->sh_type == SHT_REL) {
20005 s->sh_info = sm_table[sh->sh_info].s->sh_num;
20052 sh = &shdr[i];
20057 offseti = sm_table[sh->sh_info].offset;
20216 Elf32_Shdr *shdr, *sh, *sh1;
20242 for(i = 0, sh = shdr; i < ehdr.e_shnum; i++, sh++) {
20243 switch(sh->sh_type) {
20245 nb_dts = sh->sh_size / sizeof(Elf32_Dyn);
20246 dynamic = load_data(fd, sh->sh_offset, sh->sh_size);
20249 nb_syms = sh->sh_size / sizeof(Elf32_Sym);
20250 dynsym = load_data(fd, sh->sh_offset, sh->sh_size);
20251 sh1 = &shdr[sh->sh_link];