Lines Matching defs:ehdr

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