Lines Matching refs:ehdr

121 	Ehdr		*ehdr;		/* ELF header for file */  member
458 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) in sections() argument
483 if (ehdr->e_type == ET_REL) { in sections()
494 Elf_shdr(0, osabi, ehdr->e_machine, shdr); in sections()
540 unwind_eh_frame(Cache *cache, Word shndx, Word shnum, Phdr *uphdr, Ehdr *ehdr, in unwind_eh_frame() argument
601 &frame_ptr, frame_ptr_enc, ehdr->e_ident, B_TRUE, in unwind_eh_frame()
624 fde_cnt_enc, ehdr->e_ident, B_TRUE, shdr->sh_addr, ndx, in unwind_eh_frame()
650 &initloc, table_enc, ehdr->e_ident, B_TRUE, in unwind_eh_frame()
670 table_enc, ehdr->e_ident, B_TRUE, shdr->sh_addr, in unwind_eh_frame()
697 (ehdr->e_type != ET_REL)) { in unwind_eh_frame()
702 conv_ehdr_type(osabi, ehdr->e_type, 0, &inv_buf)); in unwind_eh_frame()
705 shdr->sh_addr, ehdr->e_machine, ehdr->e_ident, gotaddr); in unwind_eh_frame()
859 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, in unwind() argument
949 _elf_sys_encoding() != ehdr->e_ident[EI_DATA]); in unwind()
951 unwind_eh_frame(cache, cnt, shnum, uphdr, ehdr, in unwind()
971 Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, in init_symtbl_state() argument
977 state->ehdr = ehdr; in init_symtbl_state()
1134 if (state->ehdr->e_type == ET_CORE) { in output_symbol()
1144 sec = conv_sym_shndx(state->osabi, state->ehdr->e_machine, in output_symbol()
1262 if (state->ehdr->e_type != ET_REL) in output_symbol()
1306 state->ehdr->e_machine, sym, verndx, gnuver, sec, symname); in output_symbol()
1314 uchar_t osabi, Ehdr *ehdr, uint_t flags) in cap_section() argument
1385 cishdr->sh_link, ehdr, osabi, NULL, file, flags)) in cap_section()
1493 ehdr->e_machine); in cap_section()
1543 (ehdr->e_ident[EI_CLASS] == ELFCLASS32) && in cap_section()
1565 ((ehdr->e_type == ET_EXEC) || (ehdr->e_type == ET_DYN))) { in cap_section()
1688 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, in cap() argument
1729 ehdr, flags)) { in cap()
1753 if (cshdr && ((ehdr->e_type == ET_EXEC) || (ehdr->e_type == ET_DYN))) { in cap()
1848 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in syminfo() argument
2011 ehdr->e_machine, CONV_FMT_ALT_CF, &buf1), in syminfo()
2013 ehdr->e_machine, CONV_FMT_ALT_CF, &buf2)); in syminfo()
2421 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in symbols() argument
2443 if (!init_symtbl_state(&state, cache, shnum, secndx, ehdr, in symbols()
2464 sunw_sort(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, in sunw_sort() argument
2509 symsecndx, ehdr, osabi, versym, file, flags)) in sunw_sort()
2535 symsecndx, ehdr, osabi, versym, file, flags)) in sunw_sort()
2541 conv_sec_type(osabi, ehdr->e_machine, in sunw_sort()
2601 reloc(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in reloc() argument
2666 Half mach = ehdr->e_machine; in reloc()
2723 MSG_ORIG(MSG_STR_EMPTY), ehdr->e_machine, type, in reloc()
2752 Word dynsec_cnt, Ehdr *ehdr, uchar_t osabi, const char *file) in dyn_test() argument
2801 name = conv_sec_type(osabi, ehdr->e_machine, in dyn_test()
2806 name, conv_dyn_tag(dyn->d_tag, osabi, ehdr->e_machine, in dyn_test()
2818 conv_dyn_tag(dyn->d_tag, osabi, ehdr->e_machine, in dyn_test()
2829 conv_dyn_tag(dyn->d_tag, osabi, ehdr->e_machine, in dyn_test()
2840 conv_dyn_tag(dyn->d_tag, osabi, ehdr->e_machine, in dyn_test()
2870 Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in dyn_symtest() argument
2895 osabi, ehdr->e_machine, CONV_FMT_ALT_CF, &buf), in dyn_symtest()
2904 dynamic(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) in dynamic() argument
3214 sec._sec_field, dyn, dynsec_cnt, ehdr, \ in dynamic()
3218 sec._sec_field, dyn, dynsec_cnt, ehdr, \ in dynamic()
3222 sec._sec_field, dyn, dynsec_cnt, ehdr, \ in dynamic()
3228 sec.fini, cache, shnum, ehdr, osabi, file); in dynamic()
3247 sec.init, cache, shnum, ehdr, osabi, file); in dynamic()
3410 osabi, ehdr->e_machine); in dynamic()
3666 note_entry(Cache *cache, Word *data, size_t size, Ehdr *ehdr, const char *file) in note_entry() argument
3678 do_swap = _elf_sys_encoding() != ehdr->e_ident[EI_DATA]; in note_entry()
3692 is_corenote = (ehdr->e_type == ET_CORE) && in note_entry()
3743 corenote_ret = corenote(ehdr->e_machine, in note_entry()
3764 conv_ehdr_mach(ehdr->e_machine, in note_entry()
3796 note(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in note() argument
3835 (Word)_cache->c_data->d_size, ehdr, file); in note()
4196 got(Cache *cache, Word shnum, Ehdr *ehdr, const char *file) in got() argument
4225 if (ehdr->e_type == ET_REL) { in got()
4345 ehdr->e_machine); in got()
4351 ehdr->e_machine); in got()
4411 Elf_got_entry(0, gindex, gaddr, gotentry, ehdr->e_machine, in got()
4412 ehdr->e_ident[EI_DATA], sys_encoding, in got()
4463 shdr_cache(const char *file, Elf *elf, Ehdr *ehdr, size_t shstrndx, in shdr_cache() argument
4723 bgn1 = ehdr->e_shoff; in shdr_cache()
4724 end1 = ehdr->e_shoff + (ehdr->e_shentsize * ehdr->e_shnum); in shdr_cache()
4779 create_cache(const char *file, int fd, Elf *elf, Ehdr *ehdr, Cache **cache, in create_cache() argument
4794 if (fake_shdr_cache(file, fd, elf, ehdr, cache, shnum) == 0) in create_cache()
4797 if (shdr_cache(file, elf, ehdr, shstrndx, *shnum, in create_cache()
4811 Ehdr *ehdr; in regular() local
4819 if ((ehdr = elf_getehdr(elf)) == NULL) { in regular()
4862 Elf_ehdr(0, ehdr, shdr); in regular()
4874 if (ehdr->e_machine == EM_AMD64) in regular()
4879 if (ehdr->e_phoff & (addr_align - 1)) in regular()
4881 if (ehdr->e_shoff & (addr_align - 1)) in regular()
4901 osabi = ehdr->e_ident[EI_OSABI]; in regular()
4926 if (create_cache(file, fd, elf, ehdr, &cache, in regular()
4969 Elf_phdr(0, osabi, ehdr->e_machine, phdr); in regular()
4991 if (create_cache(file, fd, elf, ehdr, &cache, shstrndx, in regular()
5147 sections(file, cache, shnum, ehdr, osabi); in regular()
5156 symbols(cache, shnum, ehdr, osabi, &versym, file, flags); in regular()
5159 sunw_sort(cache, shnum, ehdr, osabi, &versym, file, flags); in regular()
5165 got(cache, shnum, ehdr, file); in regular()
5171 syminfo(cache, shnum, ehdr, osabi, file); in regular()
5174 reloc(cache, shnum, ehdr, file); in regular()
5177 dynamic(cache, shnum, ehdr, osabi, file); in regular()
5184 note_cnt = note(cache, shnum, ehdr, file); in regular()
5202 if ((note_cnt == 0) && (ehdr->e_type == ET_CORE) && in regular()
5204 (fake_shdr_cache(file, fd, elf, ehdr, in regular()
5206 (void) note(note_cache, note_shnum, ehdr, file); in regular()
5218 cap(file, cache, shnum, phnum, ehdr, osabi, elf, flags); in regular()
5222 unwind(cache, shnum, phnum, ehdr, osabi, file, elf, flags); in regular()