Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/imgact_elf.c
Show First 20 Lines • Show All 1,659 Lines • ▼ Show 20 Lines | |||||
#if defined(COMPAT_FREEBSD32) && __ELF_WORD_SIZE == 32 | #if defined(COMPAT_FREEBSD32) && __ELF_WORD_SIZE == 32 | ||||
ehdr->e_machine = ELF_ARCH32; | ehdr->e_machine = ELF_ARCH32; | ||||
#else | #else | ||||
ehdr->e_machine = ELF_ARCH; | ehdr->e_machine = ELF_ARCH; | ||||
#endif | #endif | ||||
ehdr->e_version = EV_CURRENT; | ehdr->e_version = EV_CURRENT; | ||||
ehdr->e_entry = 0; | ehdr->e_entry = 0; | ||||
ehdr->e_phoff = sizeof(Elf_Ehdr); | ehdr->e_phoff = sizeof(Elf_Ehdr); | ||||
ehdr->e_flags = 0; | ehdr->e_flags = elf_get_eflags(); | ||||
ehdr->e_ehsize = sizeof(Elf_Ehdr); | ehdr->e_ehsize = sizeof(Elf_Ehdr); | ||||
ehdr->e_phentsize = sizeof(Elf_Phdr); | ehdr->e_phentsize = sizeof(Elf_Phdr); | ||||
ehdr->e_phnum = numsegs + 1; | ehdr->e_phnum = numsegs + 1; | ||||
ehdr->e_shentsize = sizeof(Elf_Shdr); | ehdr->e_shentsize = sizeof(Elf_Shdr); | ||||
ehdr->e_shnum = 0; | ehdr->e_shnum = 0; | ||||
ehdr->e_shstrndx = SHN_UNDEF; | ehdr->e_shstrndx = SHN_UNDEF; | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 696 Lines • Show Last 20 Lines |