Lines Matching defs:elf

69         panic("wrong elf version number!");
71 // get a pointer to elf structure
72 // Check that we actually have a elf file
73 Elf *elf = elf_memory((char*)data, len);
74 assert(elf);
77 if (gelf_getehdr(elf, &ehdr) == 0) {
79 elf_end(elf);
166 Elf_Scn *section = elf_getscn(elf, sec_idx);
173 char *e_str = elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name);
205 section = elf_getscn(elf, ++sec_idx);
224 gelf_getphdr(elf, i, &phdr);
238 M5_VAR_USED void *check_p = gelf_getphdr(elf, i, &phdr);
268 elf_end(elf);
282 panic("wrong elf version number!");
284 // get a pointer to elf structure
285 Elf *elf = elf_memory((char*)fileData,len);
286 assert(elf);
288 // Check that we actually have a elf file
290 if (gelf_getehdr(elf, &ehdr) ==0) {
308 Elf_Scn *section = elf_getscn(elf, sec_idx);
314 char *sec_name = elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name);
332 section = elf_getscn(elf, ++sec_idx);
340 if (gelf_getphdr(elf, i, &phdr) == 0) {
396 elf_end(elf);
411 panic("wrong elf version number!");
413 // get a pointer to elf structure
414 Elf *elf = elf_memory((char*)fileData,len);
415 assert(elf != NULL);
419 Elf_Scn *section = elf_getscn(elf, sec_idx);
438 char *sym_name = elf_strptr(elf, shdr.sh_link, sym.st_name);
450 section = elf_getscn(elf, sec_idx);
453 elf_end(elf);
526 panic("wrong elf version number!");
528 // get a pointer to elf structure
529 Elf *elf = elf_memory((char*)fileData,len);
530 assert(elf != NULL);
532 // Check that we actually have a elf file
534 if (gelf_getehdr(elf, &ehdr) ==0) {
540 Elf_Scn *section = elf_getscn(elf, sec_idx);
546 sectionNames.insert(elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name));
547 section = elf_getscn(elf, ++sec_idx);
550 elf_end(elf);