HomeSort by: relevance | last modified time | path
    Searched defs:ehdr (Results 1 - 25 of 106) sorted by relevancy

1 2 3 4 5

  /src/sys/arch/atari/stand/tostools/libtos/
aout.c 83 struct exec ehdr; local
89 if (read(fd, (char *)&ehdr, sizeof(ehdr)) != sizeof(ehdr))
93 if ((ehdr.a_magic & 0xffff) != NMAGIC)
96 if ((N_GETMAGIC(ehdr) != NMAGIC) && (N_GETMAGIC(ehdr) != OMAGIC))
103 textsz = (ehdr.a_text + AOUT_LDPGSZ - 1) & ~(AOUT_LDPGSZ - 1);
105 od->ksize = textsz + ehdr.a_data + ehdr.a_bss
    [all...]
elf.c 72 Elf32_Ehdr ehdr; local
79 if (read(fd, (char *)&ehdr, sizeof(ehdr)) != sizeof(ehdr))
82 memcpy(&ident, ehdr.e_ident, sizeof ident);
89 i = ehdr.e_phnum * sizeof(Elf32_Phdr);
98 for (i = 0; i < ehdr.e_phnum; i++) {
114 i = ehdr.e_shnum + 1;
116 if (lseek(fd, (off_t)ehdr.e_shoff, SEEK_SET) != ehdr.e_shoff
    [all...]
  /src/sys/arch/emips/stand/common/
bootxx.c 116 Elf32_Ehdr ehdr; local
147 i = read(fd, (char *)&ehdr, sizeof(ehdr));
148 if ((i != sizeof(ehdr)) ||
149 (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) ||
150 (ehdr.e_ident[EI_CLASS] != ELFCLASS32)) {
155 for (i = 0; i < ehdr.e_phnum; i++) {
156 if (lseek(fd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
167 return ((entrypt*)ehdr.e_entry);
  /src/sys/arch/epoc32/stand/e32boot/exe/
netbsd.cpp 94 Elf32_Ehdr ehdr; local
98 Mem::Copy(&ehdr, Buffer, sizeof(ehdr));
99 PhdrSize = sizeof(Elf32_Phdr) * ehdr.e_phnum;
101 Mem::Copy(phdr, Buffer + ehdr.e_phoff, PhdrSize);
103 for (i = 0; i < ehdr.e_phnum; i++) {
118 EntryPoint = ehdr.e_entry;
  /src/sys/arch/mipsco/stand/common/
bootxx.c 120 Elf32_Ehdr ehdr; local
137 i = read(fd, (char *)&ehdr, sizeof(ehdr));
138 if ((i != sizeof(ehdr)) ||
139 (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) ||
140 (ehdr.e_ident[EI_CLASS] != ELFCLASS32)) {
145 for (i = 0; i < ehdr.e_phnum; i++) {
146 if (lseek(fd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
157 return ((entrypt)ehdr.e_entry);
  /src/sys/arch/pmax/stand/common/
bootxx.c 138 Elf32_Ehdr ehdr; local
169 i = read(fd, (char *)&ehdr, sizeof(ehdr));
170 if ((i != sizeof(ehdr)) ||
171 (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) ||
172 (ehdr.e_ident[EI_CLASS] != ELFCLASS32)) {
177 for (i = 0; i < ehdr.e_phnum; i++) {
178 if (lseek(fd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
189 return ((entrypt)ehdr.e_entry);
  /src/external/bsd/elftoolchain/dist/libelf/
elf_flag.c 89 void *ehdr; local
103 ehdr = e->e_u.e_elf.e_ehdr.e_ehdr32;
105 ehdr = e->e_u.e_elf.e_ehdr.e_ehdr64;
107 if (ehdr == NULL) {
gelf_ehdr.c 131 void *ehdr; local
147 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
153 eh64 = (Elf64_Ehdr *) ehdr;
158 eh32 = (Elf32_Ehdr *) ehdr;
gelf_phdr.c 131 void *ehdr; local
149 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
libelf_ehdr.c 118 void *ehdr; local
146 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr32;
148 ehdr = (void *) e->e_u.e_elf.e_ehdr.e_ehdr64;
150 if (ehdr != NULL) /* already have a translated ehdr */
151 return (ehdr);
164 if ((ehdr = calloc((size_t) 1, msz)) == NULL) {
170 e->e_u.e_elf.e_ehdr.e_ehdr32 = ehdr;
171 EHDR_INIT(ehdr,32);
173 e->e_u.e_elf.e_ehdr.e_ehdr64 = ehdr;
    [all...]
libelf_phdr.c 54 void *ehdr, *phdr; local
70 * Check the PHDR related fields in the EHDR for sanity.
73 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
79 eh32 = (Elf32_Ehdr *) ehdr;
82 eh64 = (Elf64_Ehdr *) ehdr;
125 void *ehdr, *newphdr, *oldphdr; local
133 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL) {
elf_scn.c 54 _libelf_load_section_headers(Elf *e, void *ehdr)
67 assert(ehdr != NULL);
88 eh32 = (Elf32_Ehdr *) ehdr;
92 eh64 = (Elf64_Ehdr *) ehdr;
144 void *ehdr; local
154 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
159 _libelf_load_section_headers(e, ehdr) == 0)
183 void *ehdr; local
197 if ((ehdr = _libelf_ehdr(e, ec, 0)) == NULL)
212 _libelf_load_section_headers(e, ehdr) == 0
    [all...]
  /src/usr.sbin/lockstat/
elf32.c 103 Elf_Ehdr ehdr; local
111 if (pread(fd, &ehdr, sizeof(ehdr), 0) != sizeof(ehdr))
114 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
115 ehdr.e_ident[EI_CLASS] != ELFCLASS)
118 switch (ehdr.e_machine) {
128 off = ehdr.e_shoff;
129 for (i = 0; i < ehdr.e_shnum; i++, off += sizeof(symhdr)) {
136 if (i == ehdr.e_shnum || symhdr.sh_offset == 0
    [all...]
  /src/sys/arch/sun3/sun3x/
locore2.c 95 Elf_Ehdr *ehdr; local
103 ehdr = (void *)end;
104 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0 ||
105 ehdr->e_ident[EI_CLASS] != ELFCLASS32) {
116 shp = (Elf_Shdr *)(end + ehdr->e_shoff);
117 for (i = 0; i < ehdr->e_shnum; i++) {
127 ssym = (char *)ehdr;
  /src/sys/arch/i386/stand/lib/
exec_multiboot1.c 46 ksyms_addr_set(void *ehdr, void *shdr, void *symbase)
54 class = ((Elf_Ehdr *)ehdr)->e_ident[EI_CLASS];
58 ehdr32 = (Elf32_Ehdr *)ehdr;
62 ehdr64 = (Elf64_Ehdr *)ehdr;
163 Elf32_Ehdr ehdr; local
168 pvbcopy((void *)mbp->mbp_marks[MARK_SYM], &ehdr, sizeof(ehdr));
170 if (memcmp(&ehdr.e_ident, ELFMAG, SELFMAG) != 0)
173 shaddr = mbp->mbp_marks[MARK_SYM] + ehdr.e_shoff;
175 shlen = ehdr.e_shnum * ehdr.e_shentsize
    [all...]
  /src/sys/arch/x68k/stand/common/
exec_sub.c 161 xarg->ehdr = *hdr;
162 xarg->ehdr.e_shstrndx = 0; /* .shstrtab will be the 1st section */
163 SECTION_NOPAD(sec, "ELF header", &xarg->ehdr, sizeof(Elf32_Ehdr));
181 xarg->ehdr.e_shnum = 0; /* no symbol */
191 xarg->ehdr.e_shnum = 3;
192 xarg->ehdr.e_shoff = sizeof(Elf32_Ehdr);
207 xarg->ehdr.e_shnum++;
252 Elf32_Ehdr *ehdr; local
264 ehdr = buf;
292 if (*(u_int32_t *)&ehdr->e_ident[EI_MAG0] !
    [all...]
execkern.h 42 Elf32_Ehdr ehdr; /* saved ELF header */ member in struct:execkern_arg
  /src/usr.sbin/installboot/arch/
pmax.c 315 Elf32_Ehdr ehdr; local
319 if ((pread(params->s1fd, &ehdr, sizeof(ehdr), 0)) != sizeof(ehdr)) {
323 if ((memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) ||
324 (ehdr.e_ident[EI_CLASS] != ELFCLASS32)) {
332 for (i = 0; i < le16toh(ehdr.e_phnum); i++) {
334 (off_t) le32toh(ehdr.e_phoff) + i * sizeof(phdr))
355 *execaddr = le32toh(ehdr.e_entry);
  /src/external/cddl/osnet/dist/tools/ctf/cvt/
util.c 71 GElf_Ehdr ehdr; local
74 if (gelf_getehdr(elf, &ehdr) == NULL)
75 elfterminate(file, "Couldn't read ehdr");
86 if ((name = elf_strptr(elf, ehdr.e_shstrndx,
103 GElf_Ehdr ehdr; local
105 if (gelf_getehdr(elf, &ehdr) == NULL) {
110 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32)
112 else if (ehdr.e_ident[EI_CLASS] == ELFCLASS64)
115 terminate("unknown ELF class %d\n", ehdr.e_ident[EI_CLASS]);
  /src/sys/arch/sun2/sun2/
locore2.c 106 Elf_Ehdr *ehdr; local
114 ehdr = (void *)end;
115 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0 ||
116 ehdr->e_ident[EI_CLASS] != ELFCLASS32) {
127 shp = (Elf_Shdr *)(end + ehdr->e_shoff);
128 for (i = 0; i < ehdr->e_shnum; i++) {
139 ssym = (char *)ehdr;
  /src/sys/arch/sun3/sun3/
locore2.c 109 Elf_Ehdr *ehdr; local
117 ehdr = (void *)end;
118 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0 ||
119 ehdr->e_ident[EI_CLASS] != ELFCLASS32) {
130 shp = (Elf_Shdr *)(end + ehdr->e_shoff);
131 for (i = 0; i < ehdr->e_shnum; i++) {
155 ssym = (char *)ehdr;
  /src/lib/libc/gen/
nlist_elf32.c 80 Elf_Ehdr ehdr; local
124 if ((ssize_t)(i = pread(fd, &ehdr, sizeof(Elf_Ehdr), (off_t)0)) == -1)
132 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
133 ehdr.e_ident[EI_CLASS] != ELFCLASS)
136 switch (ehdr.e_machine) {
  /src/lib/libexecinfo/
symtab.c 97 GElf_Ehdr ehdr; local
115 if (gelf_getehdr(elf, &ehdr) == NULL) {
116 warnx("Error getting ELF Ehdr");
121 st->ispie = ehdr.e_type == ET_DYN;
  /src/sys/arch/pmax/stand/smallnet/setnetimage/
setnetimage.c 85 Elf32_Ehdr ehdr; local
130 i = read(ifd, (char *)&ehdr, sizeof(ehdr));
131 if ((i != sizeof(ehdr)) ||
132 (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) ||
133 (ehdr.e_ident[EI_CLASS] != ELFCLASS32)) {
139 for (i = 0; i < ehdr.e_phnum; i++) {
140 if (lseek(ifd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
166 printf("entry point: 0x%08x\n", ehdr.e_entry);
207 NLVAR(X_KERNEL_ENTRY) = ehdr.e_entry
    [all...]
  /src/sys/arch/x86/x86/
cpu_ucode_intel.c 114 struct intel1_ucode_ext_table *ehdr; local
159 ehdr = (struct intel1_ucode_ext_table *)
165 ehdr->uet_count;
168 p = (uint32_t *)ehdr;

Completed in 28 milliseconds

1 2 3 4 5