Searched refs:elf_hdr (Results 1 - 9 of 9) sorted by relevance

/external/syslinux/com32/lib/sys/module/
H A Delfutils.h21 Elf_Ehdr *elf_hdr = elf_get_header(elf_image); local
23 return (Elf_Phdr*)((Elf_Off)elf_hdr + elf_hdr->e_phoff);
34 Elf_Ehdr *elf_hdr = elf_get_header(elf_image); local
36 return (Elf_Phdr*)((Elf_Off)elf_pht + index * elf_hdr->e_phentsize);
H A Delf_module.c23 static int check_header(Elf_Ehdr *elf_hdr) { argument
26 res = check_header_common(elf_hdr);
31 if (elf_hdr->e_type != MODULE_ELF_TYPE) {
36 if (elf_hdr->e_phoff == 0x00000000) {
50 extern int load_segments(struct elf_module *module, Elf_Ehdr *elf_hdr);
185 Elf_Ehdr elf_hdr; local
206 CHECKED(res, image_read(&elf_hdr, sizeof(Elf_Ehdr), module), error);
209 //print_elf_ehdr(&elf_hdr);
212 CHECKED(res, check_header(&elf_hdr), error);
216 CHECKED(res, load_segments(module, &elf_hdr), erro
[all...]
H A Dcommon.c222 int check_header_common(Elf_Ehdr *elf_hdr) { argument
224 if (elf_hdr->e_ident[EI_MAG0] != ELFMAG0 ||
225 elf_hdr->e_ident[EI_MAG1] != ELFMAG1 ||
226 elf_hdr->e_ident[EI_MAG2] != ELFMAG2 ||
227 elf_hdr->e_ident[EI_MAG3] != ELFMAG3) {
233 if (elf_hdr->e_ident[EI_CLASS] != ELFCLASS32 &&
234 elf_hdr->e_ident[EI_CLASS] != ELFCLASS64) {
239 if (elf_hdr->e_ident[EI_DATA] != MODULE_ELF_DATA) {
244 if (elf_hdr->e_ident[EI_VERSION] != MODULE_ELF_VERSION ||
245 elf_hdr
[all...]
H A Dcommon.h64 extern int check_header_common(Elf_Ehdr *elf_hdr);
/external/syslinux/core/elflink/
H A Delfutils.h22 Elf32_Ehdr *elf_hdr = elf_get_header(elf_image); local
24 return (Elf32_Phdr *) ((Elf32_Off) elf_hdr + elf_hdr->e_phoff);
36 Elf32_Ehdr *elf_hdr = elf_get_header(elf_image); local
38 return (Elf32_Phdr *) ((Elf32_Off) elf_pht + index * elf_hdr->e_phentsize);
H A Dcommon.h55 extern int check_header_common(Elf32_Ehdr * elf_hdr);
/external/syslinux/com32/lib/sys/module/i386/
H A Delf_module.c29 int load_segments(struct elf_module *module, Elf_Ehdr *elf_hdr) { argument
45 image_seek(elf_hdr->e_phoff, module);
48 pht = malloc(elf_hdr->e_phnum * elf_hdr->e_phentsize);
52 image_read(pht, elf_hdr->e_phnum * elf_hdr->e_phentsize, module);
55 for (i=0; i < elf_hdr->e_phnum; i++) {
56 cr_pht = (Elf32_Phdr*)(pht + i * elf_hdr->e_phentsize);
112 for (i = 0; i < elf_hdr->e_phnum; i++) {
113 cr_pht = (Elf32_Phdr*)(pht + i * elf_hdr
[all...]
/external/syslinux/com32/lib/sys/module/x86_64/
H A Delf_module.c29 int load_segments(struct elf_module *module, Elf_Ehdr *elf_hdr) { argument
45 image_seek(elf_hdr->e_phoff, module);
48 pht = malloc(elf_hdr->e_phnum * elf_hdr->e_phentsize);
52 image_read(pht, elf_hdr->e_phnum * elf_hdr->e_phentsize, module);
55 for (i=0; i < elf_hdr->e_phnum; i++) {
56 cr_pht = (Elf64_Phdr*)(pht + i * elf_hdr->e_phentsize);
112 for (i = 0; i < elf_hdr->e_phnum; i++) {
113 cr_pht = (Elf64_Phdr*)(pht + i * elf_hdr
[all...]
/external/iproute2/tc/
H A Dtc_bpf.c694 GElf_Ehdr elf_hdr; member in struct:bpf_elf_ctx
1169 sec_name = elf_strptr(ctx->elf_fd, ctx->elf_hdr.e_shstrndx,
1237 for (i = 1; i < ctx->elf_hdr.e_shnum; i++) {
1278 for (i = 1; i < ctx->elf_hdr.e_shnum; i++) {
1357 for (i = 1; i < ctx->elf_hdr.e_shnum; i++) {
1421 for (i = 1; i < ctx->elf_hdr.e_shnum; i++) {
1571 if (ctx->elf_hdr.e_type != ET_REL ||
1572 ctx->elf_hdr.e_machine != 0 ||
1573 ctx->elf_hdr.e_version != EV_CURRENT) {
1578 switch (ctx->elf_hdr
[all...]

Completed in 181 milliseconds