HomeSort by: relevance | last modified time | path
    Searched defs:elf (Results 1 - 12 of 12) sorted by relevancy

  /src/sys/arch/pmax/stand/smallnet/setnetimage/
Makefile 25 smallnet.elf: ${SNDIR}/smallnet
28 kernel: smallnet.elf
30 ${MIPS_ELF2ECOFF} smallnet.elf smallnet
  /src/sys/lib/libsa/
lookup_elf32.c 49 Elf_Ehdr *elf; local in function:ELFNAMEEND
55 elf = sstab;
56 if (elf->e_shoff == 0)
59 switch (elf->e_machine) {
68 shp = (Elf_Shdr *)((char *)sstab + elf->e_shoff);
69 for (i = 0; i < elf->e_shnum; i++) {
  /src/sys/arch/dreamcast/dev/microcode/
Makefile 17 aica_armcode.h: aica_armcode.elf
18 ${OBJCOPY} -O binary aica_armcode.elf aica_armcode.bin
26 aica_armcode.elf: aica_arm_locore.o aica_arm.o
28 -o aica_armcode.elf aica_arm_locore.o aica_arm.o
34 rm -f *.o aica_armcode.elf aica_armcode.bin aica_armcode.h.tmp
  /src/sys/arch/epoc32/stand/e32boot/exe/
netbsd.cpp 32 #include "elf.h"
44 Elf32_Ehdr elf; member in union:NetBSD::New::__anon3060517b010a
55 /* Currently support is ELF only. */
56 if (Mem::Compare((TUint8 *)hdr.elf.e_ident, SELFMAG,
58 netbsd = new (ELeave) ELF(size);
91 ELF::ParseHeader(void)
  /src/sys/ddb/
db_elf.c 69 "ELF",
109 Elf_Ehdr *elf; local in function:db_elf_sym_init
127 * Elf exec header
139 * Validate the Elf header.
141 elf = (Elf_Ehdr *)symtab;
142 if (memcmp(elf->e_ident, ELFMAG, SELFMAG) != 0 ||
143 elf->e_ident[EI_CLASS] != ELFCLASS)
146 switch (elf->e_machine) {
158 if (elf->e_shoff == 0)
160 shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff)
215 Elf_Ehdr *elf = STAB_TO_EHDR(stab); local in function:db_elf_find_strtab
    [all...]
  /src/sys/arch/hpc/stand/hpcboot/
load.cpp 53 Elf_Ehdr elf; member in union:Loader::objectFormat::__anon2a4d4d4a010a
58 if (header.elf.e_ident[EI_MAG0] == ELFMAG0 &&
59 header.elf.e_ident[EI_MAG1] == ELFMAG1 &&
60 header.elf.e_ident[EI_MAG2] == ELFMAG2 &&
61 header.elf.e_ident[EI_MAG3] == ELFMAG3)
  /src/sys/arch/hpcmips/stand/pbsdboot/
elf.c 1 /* $NetBSD: elf.c,v 1.9 2007/03/05 21:05:01 dogcow Exp $ */
131 Elf_Ehdr elfx, *elf = &elfx; local in function:scanfile
146 if (read(fd, (void*)elf, sizeof(Elf_Ehdr)) != sizeof(Elf_Ehdr)) {
152 if ((phtbl = (Elf_Phdr *)alloc(sizeof(*phtbl) * elf->e_phnum)) == NULL ||
153 (shtbl = (Elf_Shdr *)alloc(sizeof(*shtbl) * elf->e_shnum)) == NULL) {
159 if (lseek(fd, elf->e_phoff, SEEK_SET) == -1) {
164 if (read(fd, (void *)phtbl, sizeof(Elf_Phdr) * elf->e_phnum)
165 != (int)(sizeof(Elf_Phdr) * elf->e_phnum)) {
171 if (lseek(fd, elf->e_shoff, SEEK_SET) == -1) {
176 if (read(fd, (void *)shtbl, sizeof(Elf_Shdr) * elf->e_shnum
    [all...]
  /src/sys/arch/zaurus/stand/zbsdmod/
zbsdmod.c 107 #define elf ((Elf32_Ehdr *)bsdimage) macro
108 #define phdr ((Elf32_Phdr *)((char *)elf + elf->e_phoff))
110 if (memcmp(elf->e_ident, ELFMAG, SELFMAG) != 0 ||
111 elf->e_ident[EI_CLASS] != ELFCLASS32)
122 for (i = 0; i < elf->e_phnum; i++) {
169 * Set up pointers to copied ELF and section headers.
175 sz = elf->e_shnum * sizeof(Elf_Shdr);
176 shp = (Elf_Shdr *)((vaddr_t)elf + elf->e_shoff)
    [all...]
  /src/lib/libexecinfo/
symtab.c 94 Elf *elf; local in function:symtab_create
100 warnx("Elf Library is out of date.");
104 elf = elf_begin(fd, ELF_C_READ, NULL);
105 if (elf == NULL) {
106 warnx("Error opening elf file: %s", elf_errmsg(elf_errno()));
112 elf_end(elf);
115 if (gelf_getehdr(elf, &ehdr) == NULL) {
116 warnx("Error getting ELF Ehdr");
117 elf_end(elf);
    [all...]
  /src/sys/arch/vax/boot/xxboot/
bootxx.c 100 Elf32_Ehdr elf; member in union:Xmain::__anon4825d691010a
146 } else if (memcmp(hdr.elf.e_ident, ELFMAG, SELFMAG) == 0) {
148 size_t off = sizeof(hdr.elf);
150 read(io, (char *)&hdr.elf + sizeof(hdr.aout),
151 sizeof(hdr.elf) - sizeof(hdr.aout));
152 if (hdr.elf.e_machine != EM_VAX || hdr.elf.e_type != ET_EXEC
153 || hdr.elf.e_phnum != 1)
156 entry = hdr.elf.e_entry;
157 if (hdr.elf.e_phoff != sizeof(hdr.elf)
    [all...]
  /src/usr.sbin/crash/
crash.c 352 void *elf; local in function:main
405 elf = malloc(sz);
406 if (elf == NULL) {
409 sz = read(fd, elf, sz);
418 elf = mmap(NULL, sz, PROT_READ, MAP_PRIVATE|MAP_FILE, fd, 0);
419 if (elf == MAP_FAILED) {
496 ddb_init(sz, elf, (char *)elf + sz);
  /src/sys/arch/macppc/stand/ofwboot/
Makefile 10 FILES= ${PROG}.elf ${PROG}.xcf
61 CLEANFILES+= ${PROG}.elf ${PROG}.el1 ${PROG}.mrg ${PROG}.xcf
94 all realall: ${PROG} ${PROG}.xcf ${PROG}.elf
105 ${PROG}.elf: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
107 ${LD} -s -o ${PROG}.elf ${LINKFLAGS} \

Completed in 16 milliseconds