Home
last modified time | relevance | path

Searched refs:ehdr (Results 26 – 50 of 66) sorted by relevance

123

/freebsd/stand/kboot/kboot/arch/aarch64/
H A Dexec.c118 Elf_Ehdr *ehdr; in elf64_exec() local
211 ehdr = (Elf_Ehdr *)&(md->md_data); in elf64_exec()
213 entry = efi_translate(ehdr->e_entry); in elf64_exec()
241 trampoline_data->entry = ehdr->e_entry - fp->f_addr + staging; in elf64_exec()
/freebsd/stand/efi/loader/arch/amd64/
H A Delf64_freebsd.c94 Elf_Ehdr *ehdr; in elf64_exec() local
106 ehdr = (Elf_Ehdr *)&(md->md_data); in elf64_exec()
216 printf("Start @ 0x%lx ...\n", ehdr->e_entry); in elf64_exec()
231 PT4, ehdr->e_entry); in elf64_exec()
/freebsd/contrib/netbsd-tests/usr.bin/shmif_dumpbus/
H A Dt_basic.sh51 ehdr='bus version 2, lock: 0, generation: 22, firstoff: 0x9e414, lastoff: 0x9dfd0'
56 atf_check -s exit:0 -o inline:"${ehdr}\n" shmif_dumpbus -h shmbus
/freebsd/sys/kern/
H A Dimgact_elf.c1904 Elf_Ehdr *ehdr; in __elfN() local
1910 ehdr = (Elf_Ehdr *)hdr; in __elfN()
1922 ehdr->e_ident[EI_PAD] = 0; in __elfN()
1923 ehdr->e_type = ET_CORE; in __elfN()
1925 ehdr->e_version = EV_CURRENT; in __elfN()
1926 ehdr->e_entry = 0; in __elfN()
1932 ehdr->e_shstrndx = SHN_UNDEF; in __elfN()
1935 ehdr->e_shnum = 0; in __elfN()
1937 ehdr->e_phnum = PN_XNUM; in __elfN()
1938 ehdr->e_shnum = 1; in __elfN()
[all …]
/freebsd/lib/libprocstat/
H A Dcore.c90 GElf_Ehdr ehdr; in procstat_core_open() local
113 if (gelf_getehdr(e, &ehdr) == NULL) { in procstat_core_open()
117 if (ehdr.e_type != ET_CORE) { in procstat_core_open()
125 for (i = 0; i < ehdr.e_phnum; i++) { in procstat_core_open()
133 if (i == ehdr.e_phnum) { in procstat_core_open()
145 core->pc_ehdr = ehdr; in procstat_core_open()
/freebsd/stand/kboot/kboot/arch/amd64/
H A Delf64_freebsd.c145 Elf_Ehdr *ehdr; in elf64_exec() local
209 ehdr = (Elf_Ehdr *)&(md->md_data); in elf64_exec()
402 printf("Start @ 0x%lx ...\n", ehdr->e_entry); in elf64_exec()
422 PT4, ehdr->e_entry); in elf64_exec()
425 trampoline_data->entry = ehdr->e_entry; in elf64_exec()
/freebsd/contrib/elftoolchain/readelf/
H A Dreadelf.c169 GElf_Ehdr ehdr; /* ELF header. */ member
2301 (uintmax_t)re->ehdr.e_entry); in dump_ehdr()
2318 re->ehdr.e_ehsize); in dump_ehdr()
2322 re->ehdr.e_phentsize); in dump_ehdr()
2335 re->ehdr.e_shentsize); in dump_ehdr()
2348 re->ehdr.e_shstrndx); in dump_ehdr()
2364 switch (re->ehdr.e_machine) { in dump_eflags()
2828 switch (re->ehdr.e_machine) { in dump_arch_dyn_val()
3638 re->ehdr.e_machine) { in dump_gnu_property_type_0()
3646 re->ehdr.e_machine); in dump_gnu_property_type_0()
[all …]
/freebsd/contrib/libexecinfo/
H A Dsymtab.c90 GElf_Ehdr ehdr; in symtab_create() local
108 if (gelf_getehdr(elf, &ehdr) == NULL) { in symtab_create()
114 st->ispie = ehdr.e_type == ET_DYN; in symtab_create()
/freebsd/lib/libproc/
H A Dproc_create.c55 GElf_Ehdr ehdr; in getelfclass() local
63 if (gelf_getehdr(e, &ehdr) == NULL) in getelfclass()
65 class = ehdr.e_ident[EI_CLASS]; in getelfclass()
H A Dproc_sym.c157 GElf_Ehdr ehdr; in load_symtab() local
163 if (gelf_getehdr(e, &ehdr) == NULL) in load_symtab()
265 if (gelf_getehdr(e, &file->ehdr) != &file->ehdr) { in open_object()
517 off = file->ehdr.e_type == ET_DYN ? in proc_addr2sym()
622 off = file->ehdr.e_type == ET_DYN ? in proc_name2sym()
708 if (file->ehdr.e_type == ET_DYN) in proc_iter_symbyaddr()
H A D_libproc.h53 GElf_Ehdr ehdr; member
/freebsd/sys/powerpc/powerpc/
H A Dmachdep.c529 Elf_Ehdr *ehdr; in load_external_symtab() local
571 ehdr = (Elf_Ehdr *)kernelimg; in load_external_symtab()
573 if (!IS_ELF(*ehdr)) { in load_external_symtab()
585 shdr = (Elf_Shdr *)(kernelimg + ehdr->e_shoff); in load_external_symtab()
593 for (i = 0; i < ehdr->e_shnum; i++) { in load_external_symtab()
/freebsd/stand/i386/libi386/
H A Dmultiboot.c160 Elf_Ehdr *ehdr; in multiboot_exec() local
218 ehdr = (Elf_Ehdr *)&(md->md_data); in multiboot_exec()
219 entry = ehdr->e_entry & 0xffffff; in multiboot_exec()
/freebsd/contrib/elftoolchain/libelf/
H A Dgelf_phdr.c127 void *ehdr; in gelf_update_phdr() local
143 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) in gelf_update_phdr()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_module.c95 GElf_Ehdr ehdr; in dt_module_syminit32() local
98 gelf_getehdr(dmp->dm_elf, &ehdr); in dt_module_syminit32()
99 is_elf_obj = (ehdr.e_type == ET_REL); in dt_module_syminit32()
119 sym->st_shndx < ehdr.e_shnum) in dt_module_syminit32()
145 GElf_Ehdr ehdr; in dt_module_syminit64() local
148 gelf_getehdr(dmp->dm_elf, &ehdr); in dt_module_syminit64()
149 is_elf_obj = (ehdr.e_type == ET_REL); in dt_module_syminit64()
168 sym->st_shndx < ehdr.e_shnum) in dt_module_syminit64()
1147 GElf_Ehdr ehdr; in dt_module_update() local
1200 gelf_getehdr(dmp->dm_elf, &ehdr); in dt_module_update()
[all …]
/freebsd/usr.sbin/mpsutil/
H A Dmps_show.c779 MPI2_CONFIG_EXTENDED_PAGE_HEADER *ehdr; in show_cfgpage() local
826 ehdr = data; in show_cfgpage()
827 len = le16toh(ehdr->ExtPageLength) * 4; in show_cfgpage()
828 page = ehdr->ExtPageType; in show_cfgpage()
829 attrs = ehdr->PageType >> 4; in show_cfgpage()
/freebsd/sys/sys/
H A Delf_common.h190 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ argument
191 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
192 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
193 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/
H A Ddump.c877 findelfscn(Elf *elf, GElf_Ehdr *ehdr, const char *secname) in findelfscn() argument
885 elf_strptr(elf, ehdr->e_shstrndx, shdr.sh_name)) != NULL && in findelfscn()
905 GElf_Ehdr ehdr; in main() local
961 gelf_getehdr(elf, &ehdr) != NULL) { in main()
964 Elf_Scn *ctfscn = findelfscn(elf, &ehdr, ".SUNW_ctf"); in main()
984 symscn = findelfscn(elf, &ehdr, ".symtab"); in main()
/freebsd/sys/arm64/linux/
H A Dlinux_sysvec.c539 const Elf_Ehdr *ehdr; in linux_vdso_reloc() local
547 ehdr = (const Elf_Ehdr *)mapping; in linux_vdso_reloc()
548 shdr = (const Elf_Shdr *)(mapping + ehdr->e_shoff); in linux_vdso_reloc()
549 for (i = 0; i < ehdr->e_shnum; i++) in linux_vdso_reloc()
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_report.cpp331 auto *ehdr = reinterpret_cast<const ElfW(Ehdr) *>(info.dli_fbase); in GetGlobalSizeFromDescriptor() local
333 reinterpret_cast<const u8 *>(ehdr) + ehdr->e_phoff); in GetGlobalSizeFromDescriptor()
341 ArrayRef<const ElfW(Phdr)>(phdr_begin, phdr_begin + ehdr->e_phnum)) { in GetGlobalSizeFromDescriptor()
344 load_bias = reinterpret_cast<ElfW(Addr)>(ehdr) - phdr.p_vaddr; in GetGlobalSizeFromDescriptor()
352 HwasanGlobalsFor(load_bias, phdr_begin, ehdr->e_phnum)) in GetGlobalSizeFromDescriptor()
/freebsd/lib/libkvm/
H A Dkvm_private.c161 GElf_Ehdr ehdr; in _kvm_read_core_phdrs() local
179 if (gelf_getehdr(elf, &ehdr) == NULL) { in _kvm_read_core_phdrs()
183 if (ehdr.e_type != ET_CORE) { in _kvm_read_core_phdrs()
187 if (ehdr.e_machine != kd->nlehdr.e_machine) { in _kvm_read_core_phdrs()
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c731 GElf_Ehdr ehdr; in write_ctf() local
749 if (gelf_getehdr(elf, &ehdr)) { in write_ctf()
759 if (ehdr.e_ident[EI_DATA] == byteorder) in write_ctf()
/freebsd/usr.sbin/kldxref/
H A Dkldxref.c64 static GElf_Ehdr ehdr; variable
648 ehdr = ef.ef_hdr; in read_kld()
652 } else if (!elf_compatible(&ef, &ehdr)) { in read_kld()
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Delf.h94 #define Elf_ehdr __ElfN(ehdr)
/freebsd/sys/i386/linux/
H A Dlinux_sysvec.c744 const Elf_Ehdr *ehdr; in linux_vdso_reloc() local
753 ehdr = (const Elf_Ehdr *)mapping; in linux_vdso_reloc()
754 shdr = (const Elf_Shdr *)(mapping + ehdr->e_shoff); in linux_vdso_reloc()
755 for (i = 0; i < ehdr->e_shnum; i++) in linux_vdso_reloc()

123