Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 4 of 4) sorted by relevance

/scripts/
Dinsert-sys-cert.c68 static unsigned long get_offset_from_address(Elf_Ehdr *hdr, unsigned long addr) in get_offset_from_address() argument
73 x = (void *)hdr + hdr->e_shoff; in get_offset_from_address()
74 if (hdr->e_shnum == SHN_UNDEF) in get_offset_from_address()
77 num_sections = hdr->e_shnum; in get_offset_from_address()
93 static void get_symbol_from_map(Elf_Ehdr *hdr, FILE *f, char *name, in get_symbol_from_map() argument
128 s->offset = get_offset_from_address(hdr, s->address); in get_symbol_from_map()
130 s->content = (void *)hdr + s->offset; in get_symbol_from_map()
133 static Elf_Sym *find_elf_symbol(Elf_Ehdr *hdr, Elf_Shdr *symtab, char *name) in find_elf_symbol() argument
141 x = (void *)hdr + hdr->e_shoff; in find_elf_symbol()
143 symtab_start = (void *)hdr + symtab->sh_offset; in find_elf_symbol()
[all …]
Dasn1_compiler.c555 static void render(FILE *out, FILE *hdr);
564 FILE *out, *hdr; in main() local
648 hdr = fopen(headername, "w"); in main()
649 if (!hdr) { in main()
654 render(out, hdr); in main()
661 if (fclose(hdr) < 0) { in main()
1292 static void render(FILE *out, FILE *hdr) in render() argument
1299 fprintf(hdr, "/*\n"); in render()
1300 fprintf(hdr, " * Automatically generated by asn1_compiler. Do not edit\n"); in render()
1301 fprintf(hdr, " *\n"); in render()
[all …]
/scripts/mod/
Dmodpost.c328 return (void *)info->hdr + sechdr->sh_offset + offset; in sym_get_data_by_offset()
432 Elf_Ehdr *hdr; in parse_elf() local
438 hdr = grab_file(filename, &info->size); in parse_elf()
439 if (!hdr) { in parse_elf()
448 info->hdr = hdr; in parse_elf()
449 if (info->size < sizeof(*hdr)) { in parse_elf()
454 if ((hdr->e_ident[EI_MAG0] != ELFMAG0) || in parse_elf()
455 (hdr->e_ident[EI_MAG1] != ELFMAG1) || in parse_elf()
456 (hdr->e_ident[EI_MAG2] != ELFMAG2) || in parse_elf()
457 (hdr->e_ident[EI_MAG3] != ELFMAG3)) { in parse_elf()
[all …]
Dmodpost.h136 Elf_Ehdr *hdr; member