Lines Matching defs:ehdr
598 bool old_in_dso = FILEINFO_EHDR (oldp->file->ehdr).e_type == ET_DYN;
599 bool new_in_dso = FILEINFO_EHDR (fileinfo->ehdr).e_type == ET_DYN;
1249 if (FILEINFO_EHDR (fileinfo->ehdr).e_type != ET_REL)
1286 FILEINFO_EHDR (fileinfo->ehdr).e_shstrndx,
1992 if (likely (fileinfo->ehdr == NULL))
1994 if (likely (FILEINFO_EHDR (fileinfo->ehdr).e_type == ET_NONE))
1997 XElf_Ehdr *ehdr;
1999 ehdr = xelf_getehdr (fileinfo->elf, fileinfo->ehdr);
2001 xelf_getehdr_copy (fileinfo->elf, ehdr, fileinfo->ehdr);
2003 if (ehdr == NULL)
2011 if (FILEINFO_EHDR (fileinfo->ehdr).e_type != ET_REL
2012 && unlikely (FILEINFO_EHDR (fileinfo->ehdr).e_type != ET_DYN))
2022 FILEINFO_EHDR (fileinfo->ehdr).e_type,
2029 if (FILEINFO_EHDR (fileinfo->ehdr).e_machine
2053 if (FILEINFO_EHDR (fileinfo->ehdr).e_type == ET_REL)
2063 assert (FILEINFO_EHDR (fileinfo->ehdr).e_type == ET_DYN);
2713 XElf_Ehdr_vardef (ehdr);
2714 xelf_getehdr (elf, ehdr);
2715 assert (ehdr != NULL);
2718 ehdr->e_machine = machine;
2722 ehdr->e_type = ET_EXEC;
2724 ehdr->e_type = ET_DYN;
2728 ehdr->e_type = ET_REL;
2732 ehdr->e_version = EV_CURRENT;
2735 ehdr->e_ident[EI_DATA] = data;
2738 (void) xelf_update_ehdr (elf, ehdr);
4334 XElf_Ehdr_vardef (ehdr);
6472 xelf_getehdr (ld_state.outelf, ehdr);
6473 assert (ehdr != NULL);
6620 phdr->p_offset = ehdr->e_phoff;
6623 phdr->p_filesz = ehdr->e_phnum * ehdr->e_phentsize;
6909 xelf_getehdr (ld_state.outelf, ehdr);
6910 assert (ehdr != NULL);
6915 ehdr->e_shstrndx = shstrtab_ndx;
6932 ehdr->e_shstrndx = SHN_XINDEX;
6937 ehdr->e_entry = find_entry_point ();
6939 if (unlikely (xelf_update_ehdr (ld_state.outelf, ehdr) == 0))