Home
last modified time | relevance | path

Searched refs:ehdr (Results 1 – 2 of 2) sorted by relevance

/utopia/UTPA2-700.0.x/projects/build/scripts/
H A Drecordmcount.h178 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()
275 Elf_Ehdr const *const ehdr, in get_sym_str_and_relp() argument
280 Elf_Shdr *const shdr0 = (Elf_Shdr *)(_w(ehdr->e_shoff) in get_sym_str_and_relp()
[all …]
H A Drecordmcount.c289 Elf32_Ehdr *const ehdr = mmap_file(fname); in do_file() local
292 ehdr_curr = ehdr; in do_file()
296 switch (ehdr->e_ident[EI_DATA]) { in do_file()
300 ehdr->e_ident[EI_DATA], fname); in do_file()
320 if (memcmp(ELFMAG, ehdr->e_ident, SELFMAG) != 0 in do_file()
321 || w2(ehdr->e_type) != ET_REL in do_file()
322 || ehdr->e_ident[EI_VERSION] != EV_CURRENT) { in do_file()
328 switch (w2(ehdr->e_machine)) { in do_file()
331 w2(ehdr->e_machine), fname); in do_file()
358 switch (ehdr->e_ident[EI_CLASS]) { in do_file()
[all …]