Searched refs:ehdr (Results 1 – 4 of 4) sorted by relevance
/scripts/ |
D | recordmcount.h | 178 static void append_func(Elf_Ehdr *const ehdr, in append_func() argument 192 unsigned const old_shnum = w2(ehdr->e_shnum); in append_func() 193 uint_t const old_shoff = _w(ehdr->e_shoff); in append_func() 207 uwrite(fd_map, old_shstr_sh_offset + (void *)ehdr, old_shstr_sh_size); in append_func() 213 uwrite(fd_map, old_shoff + (void *)ehdr, in append_func() 248 ehdr->e_shoff = _w(new_e_shoff); in append_func() 249 ehdr->e_shnum = w2(2 + w2(ehdr->e_shnum)); /* {.rel,}__mcount_loc */ in append_func() 251 uwrite(fd_map, ehdr, sizeof(*ehdr)); in append_func() 277 Elf_Ehdr const *const ehdr, in get_sym_str_and_relp() argument 282 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp() [all …]
|
D | sortextable.c | 238 Elf32_Ehdr *ehdr = mmap_file(fname); in do_file() local 240 ehdr_curr = ehdr; in do_file() 241 switch (ehdr->e_ident[EI_DATA]) { in do_file() 244 ehdr->e_ident[EI_DATA], fname); in do_file() 264 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 in do_file() 265 || r2(&ehdr->e_type) != ET_EXEC in do_file() 266 || ehdr->e_ident[EI_VERSION] != EV_CURRENT) { in do_file() 272 switch (r2(&ehdr->e_machine)) { in do_file() 275 r2(&ehdr->e_machine), fname); in do_file() 292 switch (ehdr->e_ident[EI_CLASS]) { in do_file() [all …]
|
D | sortextable.h | 93 do_func(Elf_Ehdr *ehdr, char const *const fname, table_sort_t custom_sort) in do_func() argument 117 shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff)); in do_func() 119 num_sections = r2(&ehdr->e_shnum); in do_func() 123 secindex_strings = r2(&ehdr->e_shstrndx); in do_func() 128 secstrtab = (const char *)ehdr + _r(&shstrtab_sec->sh_offset); in do_func() 138 relocs = (void *)ehdr + _r(&shdr[i].sh_offset); in do_func() 147 (const char *)ehdr + _r(&shdr[i].sh_offset)); in do_func() 157 symtab = (const Elf_Sym *)((const char *)ehdr + in do_func() 163 strtab = (const char *)ehdr + _r(&strtab_sec->sh_offset); in do_func() 165 extab_image = (void *)ehdr + _r(&extab_sec->sh_offset); in do_func() [all …]
|
D | recordmcount.c | 308 Elf32_Ehdr *const ehdr = mmap_file(fname); in do_file() local 311 ehdr_curr = ehdr; in do_file() 315 switch (ehdr->e_ident[EI_DATA]) { in do_file() 319 ehdr->e_ident[EI_DATA], fname); in do_file() 339 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 in do_file() 340 || w2(ehdr->e_type) != ET_REL in do_file() 341 || ehdr->e_ident[EI_VERSION] != EV_CURRENT) { in do_file() 347 switch (w2(ehdr->e_machine)) { in do_file() 350 w2(ehdr->e_machine), fname); in do_file() 385 switch (ehdr->e_ident[EI_CLASS]) { in do_file() [all …]
|