Lines Matching refs:shdr
80 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
81 if (shdr == NULL)
88 shdr->sh_type = SHT_STRTAB;
89 shdr->sh_flags = 0;
90 shdr->sh_addr = 0;
91 shdr->sh_link = SHN_UNDEF;
92 shdr->sh_info = SHN_UNDEF;
93 shdr->sh_addralign = 1;
94 shdr->sh_entsize = 0;
95 shdr->sh_name = add_strtab_entry (scn, ".strtab");
117 if (gelf_update_shdr (scn, shdr) == 0)
141 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
142 if (shdr == NULL)
149 shdr->sh_type = SHT_PROGBITS;
150 shdr->sh_flags = 0;
151 shdr->sh_addr = 0;
152 shdr->sh_link = SHN_UNDEF;
153 shdr->sh_info = SHN_UNDEF;
154 shdr->sh_addralign = 128; // Large alignment to force gap between sections.
155 shdr->sh_entsize = 1;
156 shdr->sh_name = add_strtab_entry (strtab, sname);
158 if (gelf_update_shdr (scn, shdr) == 0)
291 printf ("cannot get shdr str ndx\n");
302 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
303 if (shdr == NULL)
308 const char *sname = elf_strptr (elf, shdrstrndx, shdr->sh_name);
374 GElf_Shdr *shdr = gelf_getshdr (scn, &shdr_mem);
375 if (shdr == NULL)
380 const char *sname = elf_strptr (elf, shdrstrndx, shdr->sh_name);