Lines Matching refs:ehdrC
329 char* ehdrC = (char*)objImage;
330 Elf_Ehdr* ehdr = (Elf_Ehdr*)ehdrC;
331 Elf_Shdr* shdr = (Elf_Shdr*)(ehdrC + ehdr->e_shoff);
332 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
344 ptr = ehdrC + shdr[i].sh_offset;
419 do_Elf_Rel_relocations ( ObjectCode* oc, char* ehdrC,
426 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset);
431 stab = (Elf_Sym*) (ehdrC + shdr[ symtab_shndx ].sh_offset);
432 targ = (Elf_Word*)(ehdrC + shdr[ target_shndx ].sh_offset);
459 (ehdrC + shdr[ sym.st_shndx ].sh_offset
545 do_Elf_Rela_relocations ( ObjectCode* oc, char* ehdrC,
552 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset);
557 stab = (Elf_Sym*) (ehdrC + shdr[ symtab_shndx ].sh_offset);
558 targ = (Elf_Addr) (ehdrC + shdr[ target_shndx ].sh_offset);
594 (ehdrC + shdr[ sym.st_shndx ].sh_offset
675 addr = findElfSegment(ehdrC, value);
713 char* ehdrC = (char*)(oc->image);
714 Elf_Ehdr* ehdr = (Elf_Ehdr*) ehdrC;
715 Elf_Shdr* shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff);
716 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
719 stab = (Elf_Sym*) findElfSection ( ehdrC, SHT_SYMTAB );
722 strtab = findElfSection ( ehdrC, SHT_STRTAB );
740 ok = do_Elf_Rel_relocations ( oc, ehdrC, shdr,
746 ok = do_Elf_Rela_relocations ( oc, ehdrC, shdr,
775 char* ehdrC = (char*)(oc->image);
776 Elf_Ehdr* ehdr = (Elf_Ehdr*)ehdrC;
830 shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff);
839 sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
848 ehdrC + shdr[i].sh_offset,
849 ehdrC + shdr[i].sh_offset + shdr[i].sh_size - 1);
877 strtab = ehdrC + shdr[i].sh_offset;
892 stab = (Elf_Sym*) (ehdrC + shdr[i].sh_offset);
956 char* ehdrC = (char*)(oc->image);
957 Elf_Ehdr* ehdr = (Elf_Ehdr*)ehdrC;
958 char* strtab = findElfSection ( ehdrC, SHT_STRTAB );
959 Elf_Shdr* shdr = (Elf_Shdr*) (ehdrC + ehdr->e_shoff);
961 char* sh_strtab = ehdrC + shdr[ehdr->e_shstrndx].sh_offset;
1008 ehdrC + .sh_offset == addr_of_zeroed_space. */
1010 shdr[i].sh_offset = ((char*)zspace) - ((char*)ehdrC);
1033 addProddableBlock(oc, ehdrC + shdr[i].sh_offset, shdr[i].sh_size);
1034 //addSection(oc, kind, ehdrC + shdr[i].sh_offset,
1035 // ehdrC + shdr[i].sh_offset + shdr[i].sh_size - 1);
1041 stab = (Elf_Sym*) (ehdrC + shdr[i].sh_offset);
1090 ad = ehdrC + shdr[ secno ].sh_offset + stab[j].st_value;