Searched refs:ehdr (Results 1 - 9 of 9) sorted by relevance
/gem5/ext/libelf/ |
H A D | libelf_ehdr.c | 101 void *ehdr; local 128 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr32; 130 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr64; 132 if (ehdr != NULL) /* already have a translated ehdr */ 133 return (ehdr); 147 if ((ehdr = calloc((size_t) 1, msz)) == NULL) { 153 e->e_u.e_elf.e_ehdr.e_ehdr32 = ehdr; 154 EHDR_INIT(ehdr,32); 156 e->e_u.e_elf.e_ehdr.e_ehdr64 = ehdr; [all...] |
H A D | elf_scn.c | 41 _libelf_load_scn(Elf *e, void *ehdr) argument 53 assert(ehdr != NULL); 71 eh32 = (Elf32_Ehdr *) ehdr; 75 eh64 = (Elf64_Ehdr *) ehdr; 126 void *ehdr; local 135 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 140 _libelf_load_scn(e, ehdr) == 0) 165 void *ehdr; local 178 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 193 _libelf_load_scn(e, ehdr) [all...] |
H A D | libelf_phdr.c | 44 void *ehdr, *phdr; local 63 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 69 eh32 = (Elf32_Ehdr *) ehdr; 73 eh64 = (Elf64_Ehdr *) ehdr; 112 void *ehdr, *newphdr, *oldphdr; local 120 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) {
|
H A D | elf_flag.c | 61 void *ehdr; local 74 ehdr = e->e_u.e_elf.e_ehdr.e_ehdr32; 76 ehdr = e->e_u.e_elf.e_ehdr.e_ehdr64; 78 if (ehdr == NULL) {
|
H A D | gelf_ehdr.c | 119 void *ehdr; local 134 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 138 eh64 = (Elf64_Ehdr *) ehdr; 143 eh32 = (Elf32_Ehdr *) ehdr;
|
H A D | gelf_phdr.c | 127 void *ehdr; local 142 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 146 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; 148 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum;
|
H A D | elf_update.c | 328 void *ehdr; local 341 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) 344 eh32 = ehdr; 345 eh64 = ehdr; 477 _libelf_setphnum(e, ehdr, ec, phnum); 478 _libelf_setshnum(e, ehdr, ec, shnum); 626 void *ehdr; local 644 ehdr = _libelf_ehdr(e, ec, 0); 645 assert(ehdr != NULL); 650 eh32 = (Elf32_Ehdr *) ehdr; [all...] |
H A D | elf_common.h | 113 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ 114 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \ 115 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \ 116 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
|
/gem5/src/base/loader/ |
H A D | elf_object.cc | 76 GElf_Ehdr ehdr; local 77 if (gelf_getehdr(elf, &ehdr) == 0) { 85 if (ehdr.e_machine == EM_SPARC64 || 86 (ehdr.e_machine == EM_SPARC && 87 ehdr.e_ident[EI_CLASS] == ELFCLASS64) || 88 ehdr.e_machine == EM_SPARCV9) { 90 } else if (ehdr.e_machine == EM_SPARC32PLUS || 91 (ehdr.e_machine == EM_SPARC && 92 ehdr.e_ident[EI_CLASS] == ELFCLASS32)) { 94 } else if (ehdr 289 GElf_Ehdr ehdr; local 533 GElf_Ehdr ehdr; local [all...] |
Completed in 30 milliseconds